Execute Commands at Specified Intervals Sample

JavaScript Editor js editor     Web development 

Main Page

File: ...\Samples\Solution\Controls\Timer\Timecomm.scx

This sample form contains a text box and a spinner. Text you type in the text box is displayed in a WAIT WINDOW. You can set the spinner to the number of seconds you want to elapse between each WAIT WINDOW command.

In the InteractiveChange event of the spinner, the appropriate timer interval is set. The Interval property is 1/1000th of a second, so the interval is set to the spinner value * 1000.

В Copy Code
THISFORM.Timer1.Interval = (THIS.Value * 1000)

In the Timer event, the WAIT WINDOW command is issued.

В Copy Code

The code associated with the Timer event can include any command or procedure: code to update data, check for mail, display system resources, and so on.

See Also

JavaScript Editor js editor     Web development