Using VPLUS: An Introduction to Forms Design (32209-90004)
7-20
the CHANGE statement to terminate the display of forms before the order
number reaches the value 1,000,000. (As presently defined, the order
number is reset to 100,001 when it reaches 999,999.)
Action
For a full discussion of the CHANGE statement, refer to Section 4 of the
VPLUS/V Reference Manual
.
.
Figure 7-16. The LINE_COUNT Save Field
The first step is to change the repeat option of ORDER_LINE so that it is
terminated automatically when ORDER_LINE has been repeated seven times.
(ORDER_LINE can be repeated seven times before the screen is full.) You
need to use a save field as the counter to determine the number of times
ORDER_LINE is repeated; this save field is initialized by a field in
ORDER_HEAD, and incremented in the initialization phase of a field in
ORDER_LINE.
Action
Press MAIN/RESUME to display the Main Menu; use option S--add a save
field; press ENTER.
On the Save Field Menu, name the save field LINE_COUNT and specify that
it is data type of DIG with a length of two digits as shown in Figure
7-16. Press ENTER.