nTotalNumericRequired
Total value of the progress bar.
AdvPL GuideSetRegua( <nTotal> )Defines the total of the progress bar used by RptStatus().
SetRegua() prepares the progress bar displayed by RptStatus(), informing the total number of steps for a report or processing routine with visual tracking.
SetRegua( <nTotal> )nTotalTotal value of the progress bar.
#Include "TOTVS.ch"
User Function ExSetRegua()
Local bAcao := {|lFim| U_GeraRel(@lFim) }
RptStatus(bAcao, "Relatório", "Gerando informações...")
Return
User Function GeraRel(lFim)
Local nLinha
SetRegua(50)
For nLinha := 1 To 50
If lFim
Exit
EndIf
IncRegua()
Next
ReturnSetRegua() defines the total and IncRegua() updates progress inside RptStatus().
© 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.