Doevents Statement

Top  Previous  Next

       

Function:

Interrupts the current event handler and processes all events in the queue at the moment of invocation.

Syntax:

 

doevents

Scope:

Global, HTML and local

See Also:

Declare Statement

 


Details

Executes events pending in the queue, then returns execution to current event handler. See doevents above.

Examples

 

'calculate sum of all array elements -- this will surely take time!

dim sum, f as word

sum = 0

for f = 0 to 49999

       sum = sum + arr(f)

       doevents 'don't want to stall other events so allow their execution while we are crunching numbers

next f