Promotic
WikipediaLinkedInYoutubeTwitterFacebook

LastTick - property of object PmTimer

Description:
Time of last execution of the onTick event.
Syntax:
LastTick As Date
Calling:
t = oTimer.LastTick
Note:
Property access for read only. If the timer did not execute the onTick event since application launch not even once then the property returns the time value 0. The last execution time and timer repeat period also defines the next execution.
See also:
Example:
Calculation of next execution based on the last execution time and timer repeat period (presuming the timer is enabled and has been launched at least once).
Dim oTimer, tNextTick
Set oTimer = pMe.Pm("/TestTimer")
tNextTick = oTimer.LastTick + oTimer.Period / 86400
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice