Metrologic IS1000 Series Guía de usuario Pagina 54

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 198
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 53
48
CipherLab BASIC Compiler
User's Guide
Remarks
"number%" is an integer variable in the range of 1 to 12 (1 to 9 for 711), indicating
the function key of the keypad.
"SubName|SubLabel" is the name or line label of a subroutine to be called when the
event is triggered.
Example
ON KEY(1) GOSUB On_Shift
ON KEY(2) GOSUB Off_Shift
...
On_Shift:
Mode$ = "IN"
RETURN
Off_Shift:
Mode$ = "OUT"
RETURN
See Also
Keypad commands, OFF KEY
ON MINUTE_SHARP GOSUB ...
Purpose
To activate the "MINUTE_SHARP Event Trigger" that executes a specific
subroutine when the system time is on the minute.
Syntax
ON MINUTE_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 MINUTE_SHARP GOSUB CheckTime
...
CheckTime:
CurrentTime$ = TIME$
Hour% = VAL(MID$(CurrentTime$,3,2))
IF Hour% = 30 THEN GOSUB HalfHourAlarm
RETURN
...
HalfHourAlarm:
BEEP(800,30)
WAIT(100)
RETURN
See Also
Calendar & Timer commands, OFF MINUTE_SHARP
Vista de pagina 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 197 198

Comentarios a estos manuales

Sin comentarios