User messages and alerts
MsgInfo(cTexto,cTitulo); MsgStop(cTexto,cTitulo); MsgYesNo(cTexto,cTitulo)Chooses information, warning or confirmation for the workflow.
Overview
MsgInfo conveys information; MsgStop signals a warning; MsgYesNo asks for a decision. An error icon does not undo writes and confirmation does not execute an action itself. The consulted community samples show these interaction differences. This adaptation retains one confirmation without a business operation. Jobs should use logs and processing state instead of modal windows. (Sources: refs. 1–4.)
Syntax
MsgInfo(cTexto,cTitulo); MsgStop(cTexto,cTitulo); MsgYesNo(cTexto,cTitulo)Commented example
#Include "Protheus.ch"
User Function Ed526()
Local lContinue := MsgYesNo("Show information?","Example")
If lContinue
MsgInfo("No data was written.","Example")
EndIf
Return NilYes opens information; No ends without changing data. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Separate decision, validation and persistence. Check dismissal/cancellation in the deployed client, avoid repetitive alerts and keep technical details in protected logs.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.