oTimerExisting timer compatible with the historical environment.
AdvPL GuideActiveTimer( <oTimer> ) / DeactiveTimer( <oTimer> )Controls activation and deactivation of a historical timer.
Historical eAdvpl reference, §4.1–4.3, p. 26. Syntax depends on that environment’s definitions; it does not establish compatibility with every current Protheus include. These functions receive an existing timer object. Creation and action definition are separate steps; activation should not execute the task repeatedly in a blocking loop. The example separates start and stop hooks. Do not transfer these function names to TTimer without checking its actual methods. (Guia de referência eAdvpl, s.d., ref. 1)
ActiveTimer( <oTimer> ) / DeactiveTimer( <oTimer> )oTimerExisting timer compatible with the historical environment.
No business return value is documented for this interface operation.
// Fragments for different events; the screen created oTimer.
// When interaction starts:
ActiveTimer(oTimer)
// When closing the screen, before disposing its objects:
DeactiveTimer(oTimer)Shows two lifecycle hooks; running them immediately in sequence does not demonstrate timer ticks. 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.