Previous Topic: ChDir or SetDirectory - Change or Set a DirectoryNext Topic: Exec or Execute - Execute an Application


Delay or Sleep - Wait Before Script Execution

Valid on NetWare, Symbian OS, UNIX, Windows and Windows CE

The Delay or Sleep function waits for n milliseconds before continuing with the script execution.

Function format:

Delay(n as Integer) as Boolean
Sleep(n as Integer) as Boolean
n

Specifies the delay time in milliseconds. One second = delay(1000).

The function always returns TRUE.

Examples:

delay(50)

Wait for 50 milliseconds for script execution.

delay(1000)

Wait for 1 second for script execution.