Datamax v1.1x Printer User Manual


 
Copyright © 2007 • MCL Technologies • All Rights Reserved
www.mcl-collection.com
Chapter 3 : Creating a Project
Example
Following is an example to illustrate the use of some of the options
described above.
This example involves a product file (Product.dat) with 4 fields per
record. The first field in each record is a Product Code. If in the Select
Record Using Field you select the Product Code, then this is the field
that is used for browsing and searching.
If the Keyboard Input checkbox is not checked, the Product Codes are
displayed on the printer and the user simply scrolls through the list until
the desired entry is found. The user then presses <ENTER> to select
that entry as the input.
If the Keyboard Input checkbox is checked, the user presses F1 to
enter, via a keyboard, the item they want to lookup. The user input is
then used to initiate a search in the file. This approach can help find an
item more quickly than browsing for the item by scrolling through the
entire list. If a match is found, the entry is displayed and the user
presses <ENTER> to select that entry as the input. The user can also
use this as the starting point to browse for a different item to enter.
Once the desired entry is found, the fields from that record are saved in
the variables you assign in the Copy Value to Variable fields. In the
Result Data table, click the
beside each field to which you want to
assign a Result Variable.
In the above example, when the desired Product Code is found in the
file, all the fields in that record are copied to local user variables [A4],
[A5], [A6] and [A7]. You are not required to assign a local user variable
to every field in the file record. You only need to assign local user
variables for the data you want to save for further processing or
printing.
October 2007 Page
80