cMensagemCaracterRequired
Pergunta ou mensagem exibida ao usuário.
AdvPL GuideApMsgYesNo( <cMensagem>, [cTitulo] ) --> lRespostaShows a Yes/No question to the user and returns the choice.
ApMsgYesNo() is a confirmation dialog function. Use it when the routine needs an explicit user decision before continuing, such as confirming a change, deletion, processing or submission.
ApMsgYesNo( <cMensagem>, [cTitulo] ) --> lRespostacMensagemPergunta ou mensagem exibida ao usuário.
cTituloTítulo da janela de confirmação.
Lógico. Retorna .T. para Sim/Confirmação e .F. para Não/Cancelamento.
#Include "TOTVS.ch"
User Function ExApMsgYesNo()
If ApMsgYesNo("Confirm the registration change?", "Confirmation")
MsgInfo("Change confirmed.")
Else
MsgAlert("Change canceled by the user.")
EndIf
ReturnThe routine follows different paths depending on the user’s answer.
© 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.