OnTimer Property

Sets or returns the name of the macro/script to be run when the Timer event occurs.

object.OnTimer = [string]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and string is a string expression specifying the script or macro to run when the event is triggered.

Client support

   Newlook Smartclient only.

Use

Use this property to run a macro or script a specified number of times (TimerCount) at a given interval of time (TimerInterval) after a form in opened. This property is useful if you want to run a macro or script on the form with no interaction from the user as it is triggered when the timer interval for the form has expired.

The timer resolution depends upon the limitations of the hardware and operating system, and can vary between several microseconds and about 18 milliseconds.

TIP:

If the TimerInterval property is set to 0, then no Timer events occur. If the TimerCount property is set to 0 and the TimerInterval property is non-zero, then the Timer events will continue to be triggered until the form is destroyed.

See Also

TimerCount property | TimerInterval property

Applies To

Form object


© 2004-2021 looksoftware. All rights reserved.