cTextoMain text displayed in the message body.
AdvPL GuideMsgAlert( <cTexto>, <cTitulo> ) --> NilDisplays an alert message with a title, visual icon and OK button.
MsgAlert() shows an alert window to communicate a situation that requires attention but does not require the user to choose between alternatives. The OK button is created automatically and execution continues after the message is closed.
MsgAlert( <cTexto>, <cTitulo> ) --> NilcTextoMain text displayed in the message body.
cTituloAlert window title. Use a short text that identifies the message context.
Nil. The function only displays the message and waits for user confirmation.
#Include "TOTVS.ch"
User Function ExMsgAlert()
MsgAlert("Test message", "Alert message test")
ReturnDisplays an alert window with the given text and an OK button.
#Include "TOTVS.ch"
User Function ExValidateMsg()
Local nQuantity := 0
If nQuantity <= 0
MsgAlert("Enter a quantity greater than zero.", "Invalid quantity")
EndIf
ReturnThe message explains the problem and guides the user’s next action.
© 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.