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.

FIELD<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for creating a single-record buffer for a random file and<br />

dividing the buffer into fields to which string variables are assigned.<br />

Syntax FIELD[#],AS[,AS...]<br />

1 2 1 3 2<br />

# indicates that whatever follows is a number. Optional.<br />

1<br />

2-n<br />

is the number assigned to the file when it was OPENed.<br />

is the number of bytes to be reserved for the string variable<br />

that follows.<br />

1-n is the designation of the string variable, for which space has<br />

been reserved.<br />

Remarks The buffer is divided into fields, each of which is given an individual length<br />

in bytes. A string variable is assigned to each field. This statement does not<br />

put any data in the buffer, it only creates and formats the buffer, allowing you<br />

to place the data by means of LSET and RSET statements.<br />

Before using this statement, consider the maximum number of characters<br />

(incl. space characters) needed for each variable and check that the total does<br />

not exceed the record size given when the file was OPENed (by default 128<br />

bytes).<br />

When a file is CLOSEd, all its FIELD definitions will be lost.<br />

Example This example opens and formats a file buffer for a single record. The buffer<br />

is divided into three fields, with the size of 25, 30 and 20 bytes respectively.<br />

10 OPEN "ADDRESSES" AS #8 LEN=75<br />

20 FIELD#8,25 AS F1$, 30 AS F2$, 20 AS F3$<br />

(Imagine a spreadsheet matrix where the file is the complete spreadsheet, the<br />

records are the lines and the fields are the columns. The buffer can only<br />

contain one such line at the time).<br />

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

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

Saved successfully!

Ooh no, something went wrong!