UBI EasyCoder 201 IIE Manuale delle Istruzioni Pagina 269

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 332
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 268
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 267
Chapter 2 Program Instructions
TRANSFER$
Field of Application
Function executing a transfer from source to destination as speci ed by
a TRANSFERSET statement.
Syntax TRANSFER$(<nexp>)
<nexp> is the character time-out in ticks (10 milliseconds).
Remarks
The TRANSFER$ function executes the transfer from source to destination
as speci ed by the TRANSFERSET statement. It also checks the transfer and
breaks it if no character has been transmitted before the speci ed time-out has
expired or if any break character, as speci ed by the break character string
in the TRANSFERSET statement, is encountered.
If the transmission was interrupted because a character in the break set was
encountered, that character will be returned.
If the transmission was interrupted because of a time-out error, an empty
string will be returned.
If the transmission was interrupted because of the reception of a character
on any other communication channel than the source (as speci ed by
TRANSFERSET statement), an empty string will be returned.
Example
The transfer will be executed by the TRANSFER$ function in line 60 and
possible interruptions will be indicated by a break character or empty
string ("") in the string variable C$.
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 268
1 2 ... 264 265 266 267 268 269 270 271 272 273 274 ... 331 332

Commenti su questo manuale

Nessun commento