variavelField-bound variable.
AdvPL Guide@ nLinha,nColuna MSGET variavel SIZE nLargura,nAltura OF oDlg PIXELCreates a variable-bound input field.
MSGET is a command that creates a variable-bound field inside a dialog. SIZE and PIXEL define dimensions; OF sets the container. VALID validates content and WHEN controls editing; PICTURE formats input without guaranteeing business rules. Syntax takes an editable variable, not a constant. (Sources: refs. 1–1.)
@ nLinha,nColuna MSGET variavel SIZE nLargura,nAltura OF oDlg PIXELvariavelField-bound variable.
coordenadas / SIZEPosition and dimensions in the chosen unit.
UI command; no function return is documented for this syntax.
#Include "Protheus.ch"
User Function Ed540()
Local oDlg
Local cValue := Space(20)
// SmartClient UI: close the window to finish.
DEFINE MSDIALOG oDlg TITLE "Example" FROM 0,0 TO 100,300 PIXEL
@ 12,12 MSGET cValue SIZE 100,12 OF oDlg PIXEL
ACTIVATE MSDIALOG oDlg CENTERED
Return NilOpens a window; closing it does not automatically save data. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.