DOEVENTS                                                          Statement

DOEVENTS

Description

DOEVENTS is used to allow events to be processed during long, intensive loops.  When DOEVENTS is called, any screen or Timer events will be processed, and then the loop will continue.

Example

REM DOEVENTS Example

'DOEVENTS allows screen events to occur

'during long loops

FOR i = 0 TO 100000

  j = j + 1

  DOEVENTS

NEXT

Output

(nothing here – but other events can happen)

 

Related Items