timer class : Interval(int) setter
Description
Sets the timer execution interval.
Syntax
instance.Interval = value;
Assigned value
| Class | Description |
| int | Time interval. |
Return value
None.
Sample code
Suppose you have the following class definition.
| 1: | class handle |
| 2: | open method void THandler(dictionary dic) |
| 3: | ... // timer handler code. |
| 4: | endmethod |
| 5: | endclass |
Usage of the Interval setter is as follows.
| 1: | handle h = new handle(); |
| 2: | timer tim = new timer(h, "THandler(dictionary)", 1000); // The interval is 1 sec. |
| 3: | tim.Interval = 10000; // It changes the interval to 10 sec. |
Notes
The unit is milliseconds.
Must be greater than 0 and less than or equal to the maximum of the int.
Links for reference
None.


