Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7 267
Chapter 2 Program Instructions
TRANSFER$
Field of Application
Function executing a transfer from source to destination as specifi 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 specifi ed by the TRANSFERSET statement. It also checks the transfer and
breaks it if no character has been transmitted before the specifi ed time-out has
expired or if any break character, as specifi 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 specifi 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)
.....
.....
.....