Sleep pauses execution of the program for a period of time equal to milliseconds. The program does not yield the event loop: execution will continue on the next statement.
Use of this statement is discouraged. It puts your app into a hard loop for the time period, which has no good side effects. In most cases, SetTimeOut() will be more useful.
Rem Sleep Example 'Pause execution for 5 seconds Sleep 5000