Using VPLUS: An Introduction to Forms Design (32209-90004)
7-34
Figure 7-26. The ORDER_LINE Form Appended the Maximum Number of Times
AUTOMATIC TERMINATION OF REPEATING FORM
In the order just entered, the repeating form was terminated by pressing
NEXT FORM. It is also terminated automatically after seven lines have
been entered on a single order. This termination is solely a result of
how the forms file ORDFORM1 was designed. It could have been designed so
that the repeat stopped after 10 forms, after 30 forms, or by default,
only when NEXT FORM is pressed.
In any case, because of the forms file design, the final order form
ORDER_TOTALS is displayed automatically after the seventh order line is
entered.
Action
Enter the data shown in Figure 7-26 into the batch file.
When you press ENTER to record the seventh (and last) order line on the
screen, the screen is cleared automatically and the next form is
displayed.