User`s guide
Chapter
5
BASIC
Commands
47
Example
ON ESC GOSUB Key_Esc
...
Key_Esc:
OFF ESC
...
ON ESC GOSUB Key_Esc
RETURN
See Also
Keypad commands, OFF ESC
ON HOUR_SHARP GOSUB ...
Purpose
To activate the "HOUR_SHARP Event Trigger" that executes a specific subroutine
when the system time is on the hour.
Syntax
ON HOUR_SHARP GOSUB SubName|SubLabel
Remarks
"SubName|SubLabel" is the name or line label of a subroutine to be called when the
event is triggered.
Example
...
ON HOUR_SHARP GOSUB OnHourAlarm
...
OnHourAlarm:
CurrentTime$ = TIME$
Hour% = VAL(LEFT$(CurrentTime$,2))
FOR I = 1 TO Hour%
BEEP(800,10,0,10)
WAIT(100)
NEXT
RETURN
See Also
Calendar & Timer commands, OFF HOUR_SHARP
ON KEY ... GOSUB ...
Purpose
To activate the "FUNCTION KEY Event Trigger" that executes a specific
subroutine when a function key is pressed.
Syntax
ON KEY(number%) GOSUB SubName|SubLabel