Sleep (statement)

Syntax

Sleep milliseconds

Description

Causes the script to pause for a specified number of milliseconds.

Comments

The milliseconds parameter is a Long in the following range:

 0 <= milliseconds <= 2,147,483,647

Example

This example displays a message for 2 seconds.

Sub Main()
  MsgOpen "Waiting 2 seconds",0,False,False
  Sleep 2000
  MsgClose 
End Sub

More information

S