Purpose
Halts execution of the program until a specified time has elapsed.
The program can still be unloaded from the server or, in the case of a stationery-launched application, stopped by closing the form.
The Sleep command is of particular use in server applications, where you don't want to consume large amounts of the server CPU calling the program, but want to execute some code on an occasional basis.
Syntax
Sleep (Seconds | Date)
Seconds |
The number of seconds to sleep before continuing. |
Date |
The program will not continue until the specified time and date are reached. |
Example
Print "This program will self destruct in five seconds!"
Sleep (5)
End
|