UBI EasyCoder 201 IIE Manuel d'instructions Page 188

  • 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 187
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7186
Chapter 2 Program Instructions
OPEN, cont.
Examples
Allow sequential output to the printers display using the OPEN statement
this way:
10 OPEN "console:" FOR OUTPUT AS #1
20 PRINT#1:PRINT#1
30 PRINT#1, "GONE TO LUNCH"
40 PRINT#1, "BACK SOON";
RUN
The text will appear on the printers display as:
GONE TO LUNCH
BACK SOON
Open the le "PRICELIST" for random access with the reference number
#8 and a record length of 254 bytes:
10 OPEN "PRICELIST" AS #8 LEN=254
Open the le "ADDRESSES" for sequential input with the reference number
#4 and a record length of 128 bytes.
10 OPEN "ADDRESSES" FOR INPUT AS #4
This example shows how a few lines can be added to a program to make it
possible to unlock it using an electronic key:
10 OPEN "lock:LCK1?PAS1" FOR INPUT AS #1
20 INPUT#1, A$
30 IF A$ AND 1 <>1 THEN GOTO 90000
.....
.....
.....
80000 CLOSE #1
90000 PRINT "Access to program denied!"
90010 END
Vue de la page 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 331 332

Commentaires sur ces manuels

Pas de commentaire