02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter —Program Instructions<br />

TRANSFERSET<br />

Purpose Statement for entering setup for the TRANSFER$ function.<br />

Syntax TRANSFERSET[#],[#],[,]<br />

# optional number sign.<br />

is the number of the source (the file or device OPENed for input).<br />

is the number of the destination file (the file or device OPENed for<br />

output or append).<br />

is a set of break characters.<br />

optionally enables or disables break on any other channel than<br />

the source:<br />

= 0 Break disabled<br />

≠ 0 Break enabled<br />

Default: Standard I/O with no break characters.<br />

Break on any other channel enabled.<br />

Remarks This statement sets up the transfer of data from a file or device OPENed<br />

for input to another file or device OPENed for output or append. The<br />

transfer will be interrupted if any character in a string of break characters,<br />

specified in this statement, is encountered (optionally on another specified<br />

channel). The actual transfer is executed by means of a TRANSFER$<br />

function, that also returns the break character that has caused any possible<br />

interruption.<br />

Example In this example, the data transfer from a file in the current directory to<br />

an external device connected to the communication port "uart1:" will be<br />

interrupted as soon as a carriage return or a line feed character is encountered<br />

in the file.<br />

10 OPEN "LABEL1.PRG" FOR INPUT AS #1<br />

20 OPEN "uart1:" FOR OUTPUT AS #2<br />

30 A$=CHR$(13)<br />

40 B$=CHR$(10)<br />

50 TRANSFERSET #1, #2, A$+B$<br />

60 C$=TRANSFER$(100)<br />

.....<br />

.....<br />

.....<br />

88 <strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!