guides:o4w:o4w_api:o4wtimer

O4WTimer routine

Creates a timer that fires after the specified # of seconds (which may be fractional).

O4WTimer(#seconds, bIsRepeating, extraParams, id, bIsUpdate)

The function has the following parameters:

ParameterDescription
#SecondsThe number of seconds between firings of the timer.
bIsRepeatingWhen set to '1', the timer will fire repeatedly at the specified interval. When the timer fires, a "TIMER" event is sent back to the O4W commuter module (and, similar to an O4WBUTTON 'click' event, the values of input controls associated with the current section will be submitted to the O4W commuter module).
extraParamsIf extraParams are specified, they will be passed back to the O4W commuter module when the timer fires as well.
idSpecifying <ID> allows the programmer to give the timer a unique name; this name can also be used to cancel the timer (by passing <#seconds> set to "0")
bIsUpdateWhen TRUE, indicates a change to an existing timer control. When FALSE, indicates the creation of a new timer control.
  • guides/o4w/o4w_api/o4wtimer.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1