cMsgDisplayed message.
AdvPL GuideAPMsgNoYes( <cMsg>, [cTitulo] ) --> lRetDocuments historical confirmation and its interpretation limits.
The historical manual documents a logical return and describes true on cancellation; the same work assigns true to APMsgYesNo confirmation. Do not silently apply that description to current releases. SANTOS’s example opens APMsgNoYes and ignores the return, so it does not resolve semantics. The editorial proposal records the raw value to compare each button, Escape and window closing in a test environment, without making writes depend on an unconfirmed interpretation. (Manual AdvPL, n.d., p. 334, ref. 1; SANTOS, 2020, ref. 2)
APMsgNoYes( <cMsg>, [cTitulo] ) --> lRetcMsgDisplayed message.
cTituloDialog title.
Logical; button-to-value meaning requires verification in the target release.
#Include "Protheus.ch"
User Function EdApmsgno()
Local lReturn
// Compare answers in testing; no write depends on them.
lReturn := APMsgNoYes("Choice test; no changes.", "Diagnostics")
ConOut(cValToChar(lReturn))
Return NilDisplays the returned value. Record the selected action for each test; this page does not assume each button’s result. 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.