Reviewing a file – PSC PT Program Generator User Manual
Page 167

Reviewing a File
User’s Guide
155
Reviewing a File
Tip11.scr, illustrated in
, lets the user review the con-
tents 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.
shows
the settings in the dialog box for the node.
2342.book Page 155 Thursday, July 22, 2004 8:35 AM