PSC PT Program Generator Portable Generator User Manual


 
Referencing Two Different Files
User’s Guide 153
Referencing Two Different Files
Tip10.scr, illustrated in Figure 123 on page 153, uses two data files: one that
contains item numbers and one that contains item descriptions. Records in
both are sorted identically. By referencing data in both files, this example dis-
plays the description of an item whose number is entered by the user.
Figure 123. Tip10.scr References Two Different Files
Display: SCAN Prompts the user to enter an item number or press <F4> to quit.
Input: ITEM Stores the input entry in the default register.
Verify: <F4> Checks to see whether the user pressed
<F4>. If so, the program
returns to the main frame.
Verify: IN FILE Checks the contents of the default register against the file with the items
in it. Figure 124 on page 154
shows the settings in the dialog box for the
node.
2342.book Page 153 Thursday, July 22, 2004 8:35 AM