ON ... (Event handling)


Events of a given type are not cumulative. For instance, the KEY event simply tells you that one or more characters have been put in the keyboard buffer.  The event queue is checked before each line of basic code is executed.   Normal execution stops until all events have been processed (including events that were triggered during said processing).

Example:

ON KEY GOSUB Label

Will jump to Label when a key is pressed.

Supported events:

 

See Also: System/Other Functions


Language Reference  Table Of Contents