EVENTWAIT


7.8.5, PLBCMP GUI Only

 

The EVENTWAIT instruction suspends the program while waiting for a trapped event or for action from an object variable. The instruction uses the following format:

 

 

[label]

EVENTWAIT

 

Where:

label

Optional. A Program Execution Label.

Flags Affected: none

Note the following:

  1. When events are pending in the event queue, they are dispatched in the order in which they occurred. The dispatching mechanism is similar to the TRAP logic in that a CALL is executed to the specified subroutine for the given event.

  2. If no traps or objects are active, the EVENTWAIT instruction suspends the program until the MAINWINDOW is closed.

  3. If a FILEPI instruction is active, it is terminated.

  4. WAITEVENT is an obsolete synonym for EVENTWAIT.

 

 

See Also: EVENTCHECK, EVENTCLEAR, Object Output Instructions, Program Control Instructions

 



PL/B Language Reference EVENTQUEUE EXCEPTCHECK