Using VPLUS: An Introduction to Forms Design (32209-90004)

7-6
FREEZE FORM, APPEND NEXT FORM
The ORDER_HEAD form contains the date, the customer identification, the
order number, and the item headings for the next form, ORDER_LINE.
Because this form contains the headings for the ORDER_LINE form, it
should be "frozen" on the screen while the order line is appended to it.
A frozen form stays on the screen when the next form is displayed. It
also stays on the screen if the next form is repeated so many times that
there is no more room on the screen. In this case, the first repeating
form is rolled off the screen under the frozen form, but the frozen form
remains.
Action
Use the Main Menu (option G) to go to the Form Menu for the ORDER_HEAD
form.
When the Form Menu for ORDER_HEAD is displayed, the repeat option is, by
default, set to N for no repeat.
Action
Leave the repeat option as is, but change the next form option to F for
freeze and append next form. Change the next form name from the TOTALS
to the form name ORDER_LINE and change the comment to match the one shown
in Figure 7-4; press ENTER.
Note that the comment indicates that this form is the first form
executed. This is actually the case because the forms in a forms file
are in alphabetical order and ORDER_HEAD is first of the forms currently
defined. However, the comment would not be true if the forms file was
changed to contain a form with a name that came before ORDER_HEAD. Later,
you will insure that this form is always the first form executed,
regardless of the sequence of forms in the forms file, by using the
Globals Menu to specify ORDER_HEAD as the "head" form in the file.