The Timer object allows you execute events on the interval
specified.
The Interval and OnTimer events are equivalent to each other. Use
the one you like most.
| Name |
Syntax |
Description |
Interval |
object.Interval = value
variable = object.Interval |
Specifies the timer's
interval in milliseconds. Does not affect the timer if it is
already running. You need to Stop and Start it again in order
this value to take effect. |
Tag |
object.Tag = value
variable = object.Tag |
Sets an application specified
tag - can be anything. You can use it if you have more than
one timers and you have code that is called to handle similar
operations. This will help you distinguish the timer that have
invoked the operation. |
Version |
variable = object.Version |
Returns the object version. |
Start |
object.Start([Interval]) |
Starts the timer. If you pass
an Interval argument it has the same effect as setting the
Interval property before calling Start. |
Stop |
object.Stop() |
Stops the timer. |
Interval |
Sub object_Interval() |
Fired each time the interval
expires. |
OnTimer |
Sub object_OnTimer(sender) |
Fired each time the interval
expires. The parameter is the Timer object itself. Prefer this
event if you want to use one code to handle different timers
which still need to be distinguished at some point. |