EVENT

Previous  Next

 

EVENT event-id

 


 

Fires an event.  If an event handler has been declared, the event handler will be called and the event will be removed upon the  RESUME statement.  You can use the EVENT 0 statement to remove any outstanding events.

 

Example:

 

OPTION EXPLICIT ON

 

ON EVENT GOTO _HANDLER

 

EVENT 23

 

IF EVENTID = 0 THEN

  PRINT "Happy Dance...No More Events!",

ELSE

  PRINT "We still have EVENT ";EVENTID;" to process",

ENDIF

 

END

 

_HANDLER:

  PRINT "%EVENT, ID: ";EVENTID;" Processed",

  RESUME NEXT