
Example
ON TIMER(1,200) GOSUB ClearScreen
...
ClearScreen:
OFF TIMER(1)
CLS
RETURN
' TIMER(1) = 2 sec
See Also
ON TIMER… GOSUB…
ON COM ... GOSUB ...
Purpose
To activate the "COM Event Trigger" that executes a specific subroutine when data
is received from the COM ports.
Syntax
ON COM(N%) GOSUB SubName|SubLabel
Remarks
"N%" is an integer variable, indicating the COM port.
COM Model Number
1 ~ 2
1 ~ 4
7xx, 8000, 8300
8500
Example
ON COM(1) GOSUB HostCommand
...
HostCommand_1:
OFF COM(1)
...
ON COM(1) GOSUB HostCommand
RETURN
See Also
Communication Ports commands, OFF COM
ON ESC GOSUB ...
Purpose
To activate the "ESC Event Trigger" that executes a specific subroutine when the
ESC key is pressed.
Syntax
ON ESC GOSUB SubName|SubLabel
Remarks
"SubName|SubLabel" is the name or line label of a subroutine to be called when the
event is triggered.
Kommentare zu diesen Handbüchern