oDlgPreviously defined dialog object.
AdvPL GuideACTIVATE DIALOG <oDlg> [CENTERED]Activates a dialog after definition and setup.
Defining a dialog creates its structure; ACTIVATE DIALOG starts interaction. TDialog documentation describes a modal window that prevents input into other windows while active. CENTERED appears in official examples and centers the dialog. Handle closing validation and interaction results explicitly; reaching code after ACTIVATE does not mean the user confirmed a write. (TOTVS, n.d., ref. 1)
ACTIVATE DIALOG <oDlg> [CENTERED]oDlgPreviously defined dialog object.
Activation command; application logic must manage the business result.
#Include "TOTVS.ch"
User Function EdDialog()
Local oDlg
// Build the window before starting modal interaction.
DEFINE DIALOG oDlg TITLE "Test inquiry" FROM 0, 0 TO 160, 300 PIXEL
ACTIVATE DIALOG oDlg CENTERED
// Closing the window does not confirm a write.
Return NilProposes an empty test window closed through the standard window control. 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.