oDlgExisting dialog.
AdvPL GuideEnchoiceBar( oDlg, bOk, bCancelar, [lMensApag], [aBotoes] )Builds a legacy confirmation and cancellation bar.
TOTVS training describes EnchoiceBar as a function although the queue classified it as a class. It adds confirmation/cancellation buttons to a dialog and accepts extra buttons with image, block and message. Callbacks are actions: closing a window does not prove persistence. The signature is the five-argument V12 training subset rather than a universal contract for later positions. The example requires an existing oDlg and only prepares construction without invoking it. (TOTVS, n.d., Programação ADVPL Avançado, V12, pp. 23–24, ref. 1)
EnchoiceBar( oDlg, bOk, bCancelar, [lMensApag], [aBotoes] )oDlgExisting dialog.
bOkConfirmation button action.
bCancelarCancellation action.
lMensApagDeletion message; false by training default.
aBotoesAdditional buttons: image, block and message.
Not formalized in the consulted section; do not assume an object return.
#Include "Protheus.ch"
User Function Ed362()
// Fragment: oDlg already exists; the bar is not built here.
Local bBuild := {|| EnchoiceBar(oDlg, {|| oDlg:End()}, {|| oDlg:End()})}
Return NilCallback prepared; no window closed or data persisted. 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.