cTituloWindow title.
AdvPL GuideFormBatch( cTitulo, aTexto, aBotoes, [bValid], [nAltura], [nLargura] )Displays messages and actions in a legacy window.
FormBatch accepts title, text lines and buttons structured as type/enabled/block. Documentation describes a numeric option return; the public example also tracks choice through callback variables without using the function return. Its line/button-limit comments are not promoted to a general contract. This adaptation has one line and one cancellation button calling FechaBatch without reading files or starting imports. It requires Protheus interface context. (TOTVS, n.d., ref. 1)
FormBatch( cTitulo, aTexto, aBotoes, [bValid], [nAltura], [nLargura] )cTituloWindow title.
aTextoMessage lines.
aBotoesType, enabled flag and block per button.
bValidWindow validation.
nAlturaPixel height.
nLarguraPixel width.
The page describes an option number; this example does not use it.
#Include "Protheus.ch"
User Function Ed389()
Local aText := {"Demonstration without processing"}
Local aButtons := {{2, .T., {|| FechaBatch()}}}
// Interface only: the callback closes the window.
FormBatch("Editorial example", aText, aButtons)
Return NilWindow with a message and cancellation, without business processing. 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.