UBI EasyCoder 201 IIE Manuale delle Istruzioni Pagina 270

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 332
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 269
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7268
Chapter 2 Program Instructions
TRANSFERSET
Field of Application
Statement for entering setup for the TRANSFER$ function.
Syntax TRANSFERSET[#]<nexp
1
>,[#]<nexp
2
>,<sexp>[,<nexp
3
>]
# optional number sign.
<nexp
1
> is the number of the source (the le or device OPENed
for input).
<nexp
2
> is the number of the destination le (the le or device OPENed
for output or append).
<sexp> is a set of break characters.
<nexp
3
> optionally enables or disables break on any other channel
than the source:
<nexp> = 0 Break disabled
<nexp> 0 Break enabled
Default: Standard I/O with no break characters.
Break on any other channel enabled.
Remarks
This statement sets up the transfer of data from a le or device OPENed for
input to another le or device OPENed for output or append. The transfer
will be interrupted if any character in a string of break characters,
speci ed in this statement, is encountered (optionally on another speci ed
channel). The actual transfer is executed by means of a TRANSFER$
function, that also returns the break character that has caused any
possible interruption.
Example
In this example, the data transfer from a le in the current directory to
an external device connected to the communication port "uart1:" will
be interrupted as soon as a carriage return or a line feed character is
encountered in the le.
10 OPEN "LABEL1.PRG" FOR INPUT AS #1
20 OPEN "UART1:" FOR OUTPUT AS #2
30 A$=CHR$(13)
40 B$=CHR$(10)
50 TRANSFERSET #1, #2, A$+B$
60 C$=TRANSFER$(100)
.....
.....
.....
Vedere la pagina 269
1 2 ... 265 266 267 268 269 270 271 272 273 274 275 ... 331 332

Commenti su questo manuale

Nessun commento