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

7-22
ed by modifications made in Browse mode.
.
Figure 7-18. The Field Menu for ORDNUM
The next example of using a CHANGE statement affects the Next Form
option. The current specification for the ORDNUM field has a length of
six digits. Thus, if the order number is incremented above the value
999999, it no longer fits in the field. As currently defined, the order
number is reset to 100001 before it overflows the field. Another
solution is to terminate execution of the forms file when the order
number gets too big.
Action
Change the Field Menu of ORDNUM in the ORDER_TOTALS form as shown in
Figure 7-18. Press ENTER.
This completes the specifications for the form ORDFORM1. Table 7-1
summarizes the global specifications for ORDFORM1, including the four
save fields; Table 7-2, Table 7-3 and Table 7-4 summarizes the field
specifications for all the forms in the file.
Action
Return to the Main Menu and compile the form so that it can be used for
data entry. Press EXIT.
Table 7-1. Summary of Globals and Save Fields in ORDFORM1