nRow, nColOrigin position in the units of the selected variant.
AdvPL Guide@ nRow, nCol METER oMtr [FROM nFrom TO nTo] [SIZE nWidth, nHeight] OF oWndVisually represents processing progress.
The eAdvpl reference guide, §3.23–3.24, p. 20, records the historical variant shown in the syntax. Fragments assume the matching environment and command definitions; they are not a complete application. The historical variant provides FROM/TO bounds and SetMeter updates. TMeter documents a total and Set/SetTotal methods: these distinct contracts must not be merged into invented syntax. Visual progress should reflect completed work rather than attempts. The fragment uses ten non-writing steps and does not implement cancellation or real-task error handling. (Refs. 1–2)
@ nRow, nCol METER oMtr [FROM nFrom TO nTo] [SIZE nWidth, nHeight] OF oWndnRow, nColOrigin position in the units of the selected variant.
oWnd / oDlgExisting parent window; use the identifier from the actual code.
Interface/printing command; do not use as a function-return expression.
// Historical fragment; oDlg already exists.
Local oMtr
Local nStep
@ 2, 2 METER oMtr FROM 0 TO 10 SIZE 30, 1 OF oDlg
For nStep := 1 To 10
// Teaching step; replace with genuinely completed work.
SetMeter(oMtr, nStep)
NextProposes progress from 0 to 10. A fast loop may show only the final state; it does not establish responsiveness. 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.