EVENTCHECK
PLBCMP GUI Only
The EVENTCHECK instruction dispatches any queued events. The instruction uses the following format:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
Flags Affected: NONE
Note the following:
If 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.
All pending events are queued and only the top event in the queue is dispatched before control is returned to the instruction after the EVENTCHECK instruction.
If a FILEPI instruction is active, it is terminated.
In a DIALOG, the EVENTCHECK statement waits for up to one tenth of a second before returning if there is no pending event.
CHECKEVENT is an obsolete synonym for EVENTCHECK.
See Also: CLEAREVENT, EVENTWAIT, Object Output Instructions, Program Control Instructions
![]() |