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:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
Flags Affected: none
Note the following:
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.
If no traps or objects are active, the EVENTWAIT instruction suspends the program until the MAINWINDOW is closed.
If a FILEPI instruction is active, it is terminated.
WAITEVENT is an obsolete synonym for EVENTWAIT.
See Also: EVENTCHECK, EVENTCLEAR, Object Output Instructions, Program Control Instructions
![]() |