oDlgVariable receiving the dialog.
AdvPL GuideDEFINE MSDIALOG oDlg TITLE cTitulo FROM nLinIni,nColIni TO nLinFim,nColFim PIXELCreates a dialog window.
DEFINE MSDIALOG creates the visual container and ACTIVATE MSDIALOG starts interaction. TITLE sets the title and FROM/TO bounds in the chosen unit. Although the queue name uses parentheses, this page documents commands rather than an MSDIALOG() business-return function. The example opens a simple dialog without writes. (Sources: refs. 1–1.)
DEFINE MSDIALOG oDlg TITLE cTitulo FROM nLinIni,nColIni TO nLinFim,nColFim PIXELoDlgVariable receiving the dialog.
coordenadas / SIZEPosition and dimensions in the chosen unit.
UI command; no function return is documented for this syntax.
#Include "Protheus.ch"
User Function Ed537()
Local oDlg
// SmartClient UI: close the window to finish.
DEFINE MSDIALOG oDlg TITLE "Example" FROM 0,0 TO 100,300 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.