
M3000 Portable Bar Code Reader User's Guide
8-2
5. Press the EXIT key, followed by Y or YES to exit the program. Press EXIT again to leave
the program mode.
6. To experiment with the new table settings, select program P4 in the Input mode, create
a new data file and observe the results of entering allowed and un-allowed inputs. For
additional information on using the Input mode, refer to the M3000 User's Guide,
Chapter 4 Quick Start-Basic Operations.
Lookup Table Definition
FORMAT - ID+OPTIONS,ITEM,...,?ERRMSG
ID - T or t - Identifier for a Lookup Table
OPTIONS - A or a - Accept Mismatches (Prompts User)
- C or c - Exact Case Matches Only
- P or p - Partial Matches (Accepts all inputs beginning with the
"ITEM" text characters)
ITEM - The Text to Match
ERRMSG - Optional Custom Error Message when the item is not found in the
LOOKUP TABLE (can be 2 lines Long - 32 Chars). A '?' character is
required at the beginning of the ERROR MESSAGE in order to
differentiate it from any of the TABLE ITEMS. This in turn means that
LOOKUP ITEMs cannot begin with a '?' character. The ERROR
MESSAGE is ignored if OPTION 'A' (Accept Mismatches) is
ENABLED.
EXAMPLES - T,EA,DZ,BX,CS,?INVALID UNIT OF MEASURE!
TP,ABC1 (Accepts ABC1, ABC1234, but rejects A, B, C, etc.)
Creating and Using a Lookup File
A lookup file allows the programmer of an M3000 program to specify a Lookup File which the
M3000 uses for data verification. Lookup file data serves to restrict the contents of the specified
input during data input. Unless allowed by a lookup option, only data listed in the lookup data file
will be accepted by the program during input.
In operation, lookup files are similar to lookup tables. They differ in several respects, however.
Whereas lookup table data resides within the program, lookup file data resides in an external file
that is referred to in the lookup specifications of the program. The structure of a lookup file is
critical to proper operation. Details of lookup file structure will be shown in the Lookup File
Definition chart that follows later in this explanation.
Simple Lookup File
To illustrate the operation of a lookup file let's modify built-in program P4 so that the P/N input
will only accept part numbers included in a lookup file.
Comentários a estes Manuais