Monarch 9460 Programmer's Manual page 98

Adk printer
Hide thumbs Also See for 9460:
Table of Contents

Advertisement

S E E K
Purpose
Positions the record pointer within the lookup table.
Syntax
SEEK
Process
The SEEK command positions the record pointer within the lookup table, according
modifier
to
Modifier
File-type
Table-name
Invalid
Optional Fields
chapter. The exceptions are as follows:
If the NEXT modifier advances the current record past the end of the file, or the
PREVIOUS modifier moves the current record before the beginning of the file,
control passes to
When the selected file is empty, any modifier triggers an end of file condition.
Then, control passes to
Example 1
This example advances the current record in the lookup table by one record, and if
an end of file condition occurs, control passes to *EOF_LABEL.
SEEK NEXT,LOOKUPFILE,*EOF_LABEL
See Also
QUERY
READ
5-76 Command Reference
modifier
,
file-type
.
specifies the current record's placement and can be one of the following:
Modifier
NEXT
PREVIOUS
START
END
specifies the type of file and can be one of the following:
File-type
LOOKUPFILE
selects which lookup table to seek.
valid labels
and
invalid label
[
( table-name )
] [
Description
Advance to next
record
Move to previous
record
Reset to beginning of
file
Advance to last
record
Description
Lookup Table File
are discussed in "Script Flow" at the beginning of this
(if defined).|
invalid label
(if defined).
,
[
invalid label
] [
, valid label
] ]

Advertisement

Table of Contents
loading

Table of Contents