Wait

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Program Flow >

Wait

 

Description

 

Stops program execution for the passed Milliseconds time.

This function will not stop UI message pump

 

Syntax

 

n = Wait(Milliseconds)

n = Wait Milliseconds

 

Returns

 

Number of milliseconds passed to the function.

 

Parameters

 

Name

Type

Optional

Meaning

Milliseconds

Number

No

Number of milliseconds to wait.

 

Remarks

 

Wait will stop script execution for the indicate milliseconds.

 

Restrictions

 

Wait will NOT block UI message pump.

Consider Sleep function in case UI message pump has to be blocked

 

See also

 

Sleep

 

Examples