Compartir a través de


Timer Control

Creates a timer that can run code at regular intervals.

Timer

Remarks

The Timer control, which is invisible to the user, is useful for background processing. A typical use for the timer is checking the system clock to determine if it is time to run a program or application.

If a Timer control has its Enabled property set to True (.T.) and immediately sets the property False (.F.) after a single execution, it may generate its Timer event multiple times. This occurs when the Interval property is less than or approximately the same as the execution time for the Timer event. This can be corrected by increasing the value of the Interval property or decreasing the execution time of the Timer event.

For additional information about creating timers, see Using Controls.

See Also

Reference

Timer Control Properties, Methods, and Events

CREATE CLASS Command

CREATE FORM Command

DEFINE CLASS Command

Form Designer

Other Resources

Objects, Collections, and Classes

Language Reference (Visual FoxPro)