cMsgDisplayed message.
AdvPL GuideAPMsgAlert( <cMsg>, [cTitulo] ) --> NilDisplays a warning dialog.
The historical manual describes APMsgAlert as a warning dialog with a message and optional title. It informs the user without performing rollback or automatically terminating its caller. To end a flow after the message, application logic must use its own Return or error handling. Do not display completion before confirming the actual result. (Manual AdvPL, n.d., p. 333, ref. 1) The community example lists this call without demonstrating business rules. (SANTOS, 2020, ref. 2)
APMsgAlert( <cMsg>, [cTitulo] ) --> NilcMsgDisplayed message.
cTituloDialog title.
Nil according to the historical reference.
#Include "Protheus.ch"
User Function EdApmsgal()
// Teaching message without customer data.
APMsgAlert("Check the result before continuing.", "Review")
Return NilProposes a message; the wrapper terminates through its own Return Nil. 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.