Gets the next event from the event queue.


object.DoEvents ( async )


async - an optional boolean expression indicating whether the method should return immediately if there are no events in the queue. If true, returns immediately. If false, waits for an event to occur before returning control back to your script. The default is false.

Return Value

A string representing the next event in the event queue.


The DoEvents method is typically used along with the Execute function to form an event loop, for example:

$Form.Show() While $Form.Visible $=Execute($Form.DoEvents) Loop>

See Also

Applies To: Form

The CHM file was converted to HTML by chm2web software.