PSC PT Program Generator User Manual page 168

Psc pt program generator user's manual
Table of Contents

Advertisement

Example Frames
Figure 127. The Output: INDEXED Dialog
Math: INDEX+1
Input: NEXT
The loop continues until the "end" record is reached, at which point the pro-
gram deletes the "end" record and exits the frame.
The file is displayed one record at a time on the screen. Each time the user
presses a key, the next record is displayed on the last line, and the previous line
moves up. The user can scroll the screen up to see previous entries in the file.
A variation of this example gives the user the ability to search through records
in both directions: First, find the end of the file (refer to
Records in a File on page 147
see the next or the previous record. Then, increment or decrement the counter
and verify that the range is between 1 and the end-of-the-file value.
156
Increments the value in the INDEX register by 1 so that the next record
in the file is displayed.
Keeps the record contents displayed until the user presses a key. The
program then loops back to
displayed.
). Next, output the first record and give the option to
PT Program Generator (PPG) v5.0
so that the next record can be
Verify: END
Finding the Number of

Advertisement

Table of Contents
loading

Table of Contents