Programming instructions
Intermec Fingerprint v7.61 – Programmer’s 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 fi le or device OPENed
for input).
<nexp
2
> is the number of the destination fi le (the fi 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 fi le or device OPENed for
input to another fi le or device OPENed for output or append. The transfer
will be interrupted if any character in a string of break characters,
specifi ed in this statement, is encountered (optionally on another specifi 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 fi 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 fi 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)
.....
.....
.....