qb45advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ON event Statements QuickSCREEN
  QuickSCREEN      Details      Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
ON event - Event trapping statements that indicate the first line
           of an event-trapping subroutine
Syntax
  ON event GOSUB {linenumber | linelabel}
    ■ event is a keyword that identifies the event to trap
    ■ linelabel or linenumber is the first line of an event-handling
      subroutine
  ON event Statement           Type of Event Trapped
  ON COM(n)                  Characters received at communications port n
  ON KEY(n)                  Keystroke on key n
  ON PEN                     Lightpen activity
  ON PLAY(n)                 Less than n notes in background music buffer
  ON STRIG(n)                Activity on joystick trigger n
  ON TIMER(n)                Elapsed time event
 
See Also  COM(n) ON  KEY(n) ON  PEN ON  PLAY ON
          STRIG ON  TIMER ON