OnTimer - DFTimer
Sent every time the timeout interval passes
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| iwParam | Integer | Contains identifier of timer object created. If your program has more than one timer defined, the value of iwParam is 2,3,4, etc. The timer id is the N-th timer in the internal Array object that is used to manage the timers. |
| ilParam | Integer | Can contain a application-defined callback function (cannot be used by DataFlex programs) |
Syntax
Procedure OnTimer Integer iwParam Integer ilParam
Description
Sample
Object oMyTimer is a DFTimer
Procedure OnTimer Integer iwParam Integer ilParam
Showln (CurrentDateTime ())
End_Procedure
End_Object
| Col 1 | Col 2 |
|---|---|
| Note: | When one augments the OnTimer event and does not forward it, the values of the properties Timer_Message and Timer_Object are not used. It is up to the developer to either use the OnTimer event or the timer_message / timer_object properties. |