UBI EasyCoder 201 IIE Manuel d'instructions Page 185

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 332
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 184
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 183
Chapter 2 Program Instructions
ON KEY GOSUB, cont.
Examples
This example illustrates how activating the F1 key (id. No. 10) will make the
program branch to a subroutine, which contains the PRINTFEED statement.
Note line 30 where the execution will wait for the key to be pressed.
10 ON KEY (10) GOSUB 1000
20 KEY (10) ON
30 GOTO 30
.....
.....
.....
1000 FONT "Swiss 721 BT"
1010 PRPOS 30,100
1020 PRTXT "HELLO"
1030 PRINTFEED
1040 END
RUN
The same example can be written without line numbers this way:
IMMEDIATE OFF
ON KEY (10) GOSUB QQQ
KEY (10) ON
WWW: GOTO WWW
.....
.....
.....
QQQ: FONT "Swiss 721 BT"
PRPOS 30,100
PRTXT "HELLO"
PRINTFEED
END
IMMEDIATE ON
RUN
Vue de la page 184
1 2 ... 180 181 182 183 184 185 186 187 188 189 190 ... 331 332

Commentaires sur ces manuels

Pas de commentaire