Navigation:  thinBasic language > Program Flow >

DoEvents

Previous pageReturn to chapter overviewNext page

 

Description

 

Yields execution so that the operating system can process other events.

 

Syntax

 

DoEvents [( ON | OFF )]

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

ON

Number

Yes

Switch ON internal automatic DoEvents performed by thinBasic engine

OFF

Number

Yes

Switch OFF internal automatic DoEvents performed by thinBasic engine

 

Remarks

 

thinBasic automatically perform an internal DoEvents every time this keyword is encountered. This gives enough slice time to all other process running.

This behave can be changes switching it ON or OFF.

 

By default internal DoEvents are ON. Switching it OFF will increase script execution speed.

 

Restrictions

 

See also

 

Examples