nRow, nColRow and column where the field is placed. With PIXEL, coordinates start at the upper-left corner of the parent.
AdvPL Guide@ <nRow>, <nCol> GET [<oGet> VAR] <uVar> [OF <oWnd>] [PICTURE <cPict>] [VALID <cbValid>] [WHEN <cbWhen>] [READONLY] [PASSWORD]Creates a TGet field for editing character, numeric or date values in an AdvPL interface.
The @ ... GET command creates an input control bound to a character, numeric or date AdvPL variable. During compilation it is translated into the TGet class New() constructor. Input may use a PICTURE mask, exit validation, an enablement condition and change events, as well as read-only and password modes.
@ <nRow>, <nCol> GET [<oGet> VAR] <uVar> [OF <oWnd>] [PICTURE <cPict>] [VALID <cbValid>] [WHEN <cbWhen>] [READONLY] [PASSWORD]nRow, nColRow and column where the field is placed. With PIXEL, coordinates start at the upper-left corner of the parent.
oGet VARVariable receiving the TGet object. When supplied, VAR must precede the edited variable.
uVarCharacter, numeric or date variable whose value is displayed and edited.
OF oWndDialog, panel, folder or other container that owns the GET. OF is recommended.
PICTURE cPictMask controlling value formatting and editing.
VALID cbValidValidation run when focus is lost; it must return .T. to allow leaving.
WHEN cbWhenCondition evaluated during focus changes to determine whether the field may receive focus.
ON CHANGE cbChangeAction executed when the editable content changes.
READONLYAllows focus, selection and copying but prevents editing.
PASSWORDVisually hides typed characters with asterisks.
SIZE · FONT · COLOR · PIXELCustomize dimensions, font, colors and coordinate system.
#Include "TOTVS.ch"
User Function ExGetCustomer()
Local oDlg
Local oGetCode
Local cCode := Space(6)
Define Dialog oDlg Title "Customer identification" ;
From 100, 100 To 260, 520 Pixel
@ 18, 20 Say "Code:" Of oDlg Pixel
@ 16, 65 Get oGetCode Var cCode ;
Picture "@!" Size 90, 12 Of oDlg Pixel ;
Valid !Empty(AllTrim(cCode))
Activate Dialog oDlg Centered
ReturnPICTURE transforms input according to the mask and VALID prevents leaving while the code is empty.
#Include "TOTVS.ch"
User Function ExGetAcesso()
Local oDlg
Local cUsuario := "OPERADOR"
Local cSenha := Space(20)
Define Dialog oDlg Title "Acesso" ;
From 0, 0 To 220, 480 Pixel
@ 15, 20 Say "Usuário:" Of oDlg Pixel
@ 13, 70 Get cUsuario Size 100, 12 ;
Of oDlg Pixel ReadOnly
@ 45, 20 Say "Senha:" Of oDlg Pixel
@ 43, 70 Get cSenha Size 100, 12 ;
Of oDlg Pixel Password ;
Valid !Empty(AllTrim(cSenha))
Activate Dialog oDlg Centered
ReturnREADONLY allows viewing and copying the user without changing it; PASSWORD visually masks the password during editing.
© 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.