nRow, nColRow and column where the text area is placed. With PIXEL, coordinates start at the upper-left corner of the parent.
AdvPL Guide@ <nRow>, <nCol> GET [<oMultiGet> VAR] <uVar> MULTILINE [OF <oWnd>] [SIZE <nWidth>, <nHeight>] [WHEN <cbWhen>] [VALID <cbValid>] [READONLY] [NOBORDER] [NO VSCROLL]Creates a TMultiGet field for editing or displaying multiple lines of text.
The @ ... GET MULTILINE command creates a text area bound to a character variable. During compilation it is translated into the TMultiGet class New() constructor. By default, vertical scrolling is available when content exceeds the component height; it may also be read-only, borderless or created without vertical scrolling.
@ <nRow>, <nCol> GET [<oMultiGet> VAR] <uVar> MULTILINE [OF <oWnd>] [SIZE <nWidth>, <nHeight>] [WHEN <cbWhen>] [VALID <cbValid>] [READONLY] [NOBORDER] [NO VSCROLL]nRow, nColRow and column where the text area is placed. With PIXEL, coordinates start at the upper-left corner of the parent.
oMultiGet VARVariable receiving the TMultiGet object. When supplied, VAR must precede the edited variable.
uVarCharacter variable whose text is displayed and edited.
MULTILINESelects the multiline control. TEXT and MEMO are accepted, but MULTILINE is recommended.
OF oWndDialog, panel, folder or other owner container. OF is recommended.
SIZE nWidth, nHeightWidth and height of the text area.
WHEN cbWhenCondition determining whether the component may receive focus.
VALID cbValidValidation run when focus is lost; it must return .T. to allow leaving.
READONLYAllows selection and copying but prevents text changes.
NOBORDER / NO BORDERCreates the component without its standard visual border.
NO VSCROLLDisables vertical scrolling even when more lines exist than can be displayed.
COLOR · SIZE · FONT · PIXELCustomize colors, dimensions, font and coordinate system.
#Include "TOTVS.ch"
User Function ExGetMultiline()
Local oDlg
Local oNotes
Local cNotes := ""
Define Dialog oDlg Title "Order notes" ;
From 100, 100 To 380, 620 Pixel
@ 15, 20 Get oNotes Var cNotes ;
Multiline Size 250, 90 Of oDlg Pixel ;
Valid Len(AllTrim(cNotes)) <= 500
Activate Dialog oDlg Centered
ReturnThe user may enter line breaks. VALID limits the content to 500 characters before allowing focus to leave.
#Include "TOTVS.ch"
User Function ExTextoLeitura()
Local oDlg
Local cTexto := "Orientações:" + CRLF + ;
"1. Confira os dados." + CRLF + ;
"2. Confirme o processamento."
Define Dialog oDlg Title "Orientações" ;
From 0, 0 To 260, 520 Pixel
@ 15, 20 Get cTexto Multiline ReadOnly ;
Size 220, 75 Of oDlg Pixel NOBORDER
Activate Dialog oDlg Centered
ReturnREADONLY preserves selection and copying; NOBORDER provides a more discreet presentation.
© 2026 Usina.BR. Todos os direitos reservados. TOTVS, Protheus, Microsiga e seus respectivos logotipos são marcas de titularidade da TOTVS S.A. AdvPL é uma linguagem de programação desenvolvida pela TOTVS. O AdvPL Guia é um projeto independente, sem vínculo, representação, patrocínio ou afiliação com a TOTVS S.A., suas franquias ou representantes.