
Purpose
Κ
To activate KEY event trigger.
Syntax
Κ
ON KEY(number%) GOSUB SubLabel | SubName
Example
Κ
ON KEY(1) GOSUB F1
ON KEY(2) GOSUB F2
…
F1:
OFF KEY(1)
…
RETURN
F2:
OFF KEY(2)
…
RETURN
Description
Κ
When a function key is pressed, a specific subroutine will be
executed.
number%
is an integer variable in the range of 1 to 6,
indicating a function key of the keypad.
Purpose
Κ
To activate MINUTE event trigger.
Syntax
Κ
ON MINUTE GOSUB SubLabel | SubName
Example
Κ
ON MINUTE GOSUB AMINUTE
…
AMINUTE:
CurrentTime$=TIME$
CurrentMin%=VAL(MID$(CurrentTime$,3,2))
IF CurrentMin%=30 THEN
BEEP(30,50,0,0)
WAIT(200)
END IF
RETURN
Description
Κ
When the system time is on the minute, a specific subroutine
will be executed.
T P C 7 0 3 0
Programming Manual Ver. 1.00
35/131