bas7qck.hlp (Table of Contents; Topic list)
ON Event Statements
                                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
The ON event statements are used to trap events. For further information, see
ON COM, ON KEY, ON PEN, ON PLAY, ON SIGNAL, ON STRIG, ON TIMER, or ON UEVENT:
                                                               Available in
Specifies                                         Enables      DOS or OS/2
a trap       Type of event                        the trap     protected mode
═══════════  ═════════════════════════════════    ═══════════  ══════════════
ON COM     Events on a communications port      COM ON     DOS & OS/2
ON KEY     A keystroke                          KEY ON     DOS & OS/2
ON PEN     Lightpen events                      PEN ON     DOS only
ON PLAY    Fewer than queluelimit% notes in     PLAY ON    DOS only
                                the background-music queue
ON SIGNAL  An OS/2 signal event                 SIGNAL ON  OS/2 only
ON STRIG   Events on a joystick trigger         STRIG ON   DOS only
ON TIMER   Timer events                         TIMER ON   DOS & OS/2
ON UEVENT  User-defined events                  UEVENT ON  DOS & OS/2
 
See Also    ON ERROR    ON...GOSUB    ON...GOTO