17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

TRANSFERSET<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for entering setup for the TRANSFER$ function.<br />

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

# optional number sign.<br />

is the number of the source, i.e. the file or device OPENed for<br />

input.<br />

is the number of the destination file, i.e. the file or device<br />

OPENed for output or append.<br />

is a set of break characters.<br />

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

than 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 for<br />

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

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

statement, is encountered (optionally on another specified channel). The<br />

actual transfer is executed by means of a TRANSFER$ function, that also<br />

returns the break character that has caused any possible interruption.<br />

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

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

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

encountered 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 />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 236

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

Saved successfully!

Ooh no, something went wrong!