UBI EasyCoder 201 IIE Manuale delle Istruzioni Pagina 215

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 332
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 214
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 213
Chapter 2 Program Instructions
PUT
Field of Application
Statement for writing a given record from the random buffer to
a given random le.
Syntax PUT[#]<nexp
1
>,<nexp
2
>
# indicates that whatever follows is a number. Optional.
<nexp
1
> is the number assigned to the le when it was OPENed.
<nexp
2
> is the number of the record. Must be 1.
Remarks
Use LSET or RSET statements to place data in the random buffer before
issuing the PUT statement.
Example
10 OPEN "PHONELIST" AS #8 LEN=26
20 FIELD#8,8 AS F1$, 8 AS F2$, 10 AS F3$
30 SNAME$="SMITH"
40 CNAME$="JOHN"
50 PHONE$="12345630"
60 LSET F1$=SNAME$
70 LSET F2$=CNAME$
80 RSET F3$=PHONE$
90 PUT #8,1
100 CLOSE#8
RUN
SAVE "PROGRAM 1.PRG "
NEW
10 OPEN "PHONELIST" AS #8 LEN=26
20 FIELD#8,8 AS F1$, 8 AS F2$, 10 AS F3$
30 GET #8,1
40 PRINT F1$,F2$,F3$
RUN
yields:
SMITH
↔↔↔
JOHN
↔↔↔↔↔↔
12345630
Vedere la pagina 214
1 2 ... 210 211 212 213 214 215 216 217 218 219 220 ... 331 332

Commenti su questo manuale

Nessun commento