Monarch 9460 Programmer's Manual page 90

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

Advertisement

Q U E R Y
Purpose
Searches the lookup file to find a specified record.
Syntax
QUERY
Process
The QUERY command searches the lookup file to find a record containing a
specific value.
NOTE:
If multiple records contain the value, the command reads the first record fitting the
criteria.
Buffer-field1
Comparison
Buffer-field2
the following:
If the query is successful and finds the record, the pointer is set to that record.
5-68 Command Reference
buffer-field1
,
comparison
specifies the buffer to search and can be one of the following:
Buffer-field1
Logical Field Name (LU1)
defines the type of query and can be one of the following:
Comparison
Description
EQ
Contents of
to the contents of
LT
Contents of
than the contents of
LE
Contents of
than or equal to the contents of
buffer-field2
GT
Contents of
than the contents of
GE
Contents of
than or equal to the contents of
buffer-field2
specifies the buffer holding the value to search on and can be one of
Buffer-field2
INPUT
Logical Field Name
(TEMP1)
Logical Field Name (LU1)
Logical Field Name (PR1)
Logical Field Name
(Field1) [Index]
String
Number
,
buffer-field2
[
,
[
Description
Lookup Buffer Field
buffer-field1
is equal
buffer-field2
buffer-field1
is less
buffer-field2
buffer-field1
is less
buffer-field1
is greater
buffer-field2
buffer-field1
is greater
Description
Input Buffer
Temporary Buffer
Field
Lookup Buffer Field
Printer Buffer Field
Array Buffer Field
ASCII string delimited
by double quotes
Must be one
character long
Number prefixed by a
number sign (#)
invalid label
] [
, valid label
] ]

Advertisement

Table of Contents
loading

Table of Contents