Wait Statement

Suspends the execution of the script for a specified interval.

Syntax

Wait TimeoutMilliseconds

The TimeoutMilliseconds parameter specifies the time, in milliseconds, for which to suspend execution.

Remarks

The Wait statement is fully equivalent to the Pause statement. These two statements work absolutely identically and are supported for compatibility with different versions of BASIC.

Example

In the example below Wait is used to create a 5 second pause.

Wait 5000

 

See Also

Pause Statement, Timer Function