Interval Property (ATimer)

Returns or sets the number of milliseconds between calls to the control's OnTimer event.

Syntax

Object.Interval [ = lInterval ]

The Interval property syntax has the following parts:

 

Name

Type

Description

Object

ATimer

ATimer control

lInterval

Long

An integer specifying the number of milliseconds between calls to the control's OnTimer event.

Where

lInterval can be one of the following:

 

Value

Description

0 *

The ATimer object is disabled.

1 to 65,535

Sets an interval (in milliseconds) that takes effect when a ATimer object's Enabled property is set to True. For example, a value of 10,000 milliseconds equals 10 seconds. The maximum, 65,535 milliseconds, is equivalent to just over 1 minute.

Comments

The ATimer control's Enabled property determines whether the control responds to the passage of time. Set Enabled to True/False to turn an ATimer control on/off. When an ATimer control is enabled, its countdown always starts from the value of its Interval property setting.

You should create an OnTimer event procedure to tell your application what to do each time the lInterval has passed.

Example

The following statement changes the ATimer Interval to be 20 milliseconds:

tmr1.Interval=20

Applies to

ATimer

See Also

OnTimer