Programming with Reflection

image\rwnprg32.gif WaitEventNumber method

 

Syntax object.WaitEventNumber Event, TimeOut

 

Description

Waits for the occurrence of the specified event, defined with the DefineEvent method. The procedure containing the command is paused until the wait expires or is satisfied.

Arguments

Event Argument type: Integer
The event for which to check. The event number is assigned by the Event argument of DefineEvent.

TimeOut Argument type: String
Specifies an interval of time in HH:MM:SS format. If this interval elapses before the specified event occurs, an error is returned.

 

Note: When a wait is satisfied, the event status is reset. Until the event is removed (using RemoveEvent or ClearEvents), it will be satisfied again after this point when the conditions of the defined event have once again been met.

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command