USE PHASES [ USING VPLUS/V AN INTRO. TO FORMS DESIGN Self-Paced Training Guide ] MPE/iX 5.0 Documentation
USING VPLUS/V AN INTRO. TO FORMS DESIGN Self-Paced Training Guide
USE PHASES
Once you have completed the actions described below, the specifications
for the ORDNUM and ORDATE fields in each of the two forms should appear
as shown in Table 6-3.
Action
In order to cause the order number on both the ORDER form and the TOTALS
form to appear when the forms are initially displayed, you return to the
ORDNUM fields for each of these forms and precede the processing
statements by the header, INIT. Press ENTER to record the changes.
As a result, the order number is calculated in the save field and then
moved to the ORDNUM field before either form is displayed. It is also
useful to display the date when a form is displayed.
Action
This can be accomplished in the ORDATE fields of each form by entering
the phase header INIT before the statement SET TO $TODAY. Press ENTER to
record the change for each field.
Later in this section, you use the INIT phase once again to initialize
the total net price for the TOTNET field in TOTALS.
Note that the value of SORDNUM is tested and incremented in the
initialization phase, rather than in the final phase, to prevent its
being incremented when corrections are entered in Browse mode. It is
important to remember that the initialization phase is the only phase not
executed in Browse mode.
Figure 6-8. Field Menu for NAME in the ORDER Form
MPE/iX 5.0 Documentation