
Reviewing a File
Reviewing a FileTip11.scr, illustrated in Figure 126 on page 155, lets the user review the contents of a file, one record at a time.
Figure 126. Tip11.scr Reviews a File
Copy: END Copies the constant “end” to the end of the default file to mark the last record.
Copy: INDEX=1 Copies the number 1 into a register named Index. This register will determine which record is displayed.
Verify: END Looks at the record at the position specified in the Index register. If the record contains “end”, this is the last record in the file, and the program deletes the “end” record and exits to the main frame. If it does not find “end”, the program continues to the Output node.
Output: INDEXED Displays the contents of the record at the position specified in the Index register on the portable’s screen. Figure 127 on page 156 shows the settings in the dialog box for the node.
User’s Guide | 155 |