Argox PA-20 Basic Programming Manual Manuel d'utilisateur Page 35

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 143
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 34
PT-Basic Programming Manual Ver. 1.00 34/143
ON KEY GOSUB
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.
ON MINUTE GOSUB
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.
Vue de la page 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 142 143

Commentaires sur ces manuels

Pas de commentaire