Timer response type

Use the Timer response type to start and stop a timer attached to a form. To start the timer as soon as a form launches, use this response type in a StdFormPreDisplay event.

You can use timers to check and refresh collections automatically, or to perform other tasks that must be attended to automatically on a periodic basis.

This response type has two possible parameters:

  • An ACTION (either Start or Stop)
  • An INTERVAL, representing the amount of time that is to pass between "ticks" of the timer, in milliseconds.

    See Edit Timer Actions dialog box.

You can set the INTERVAL only if the ACTION is Start. To change the interval, you must stop and restart the timer.

Timers must be used in conjunction with a StdFormTimerTick event. Each time the timer "ticks", it triggers this event.

Remarque: When the form closes, the timer stops automatically for that form.
Rubriques liées