Timer Object
Parents Properties Methods Events
Purpose: To generate an action at regular intervals.

Description

The Timer object is used to generate an event at regular intervals. It can be used to produce animation and to implement "repeaters" such as spin buttons.

The Interval property specifies how often the Timer generates events and is defined in milliseconds. Its default value is 1000.

 

The Active property determines whether or not the Timer generates events and can be used to switch the Timer off and on as required.

Note that if you create a Timer object whose Timer event generates an error (for example by attaching it to a non-existent callback) it may be very difficult or even impossible to type into the Session, because the error will be displayed over and over again. Care is therefore recommended.