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

6-5
Table 6-1. Save Field Definitions for ORDFORM1
---------------------------------------------------------------------------------------------
|||||
| Save Field Name | Length | Data Type | Initial Value |
|||||
---------------------------------------------------------------------------------------------
|||||
| SORDNUM | 6 | DIG | 100001 |
|||||
| SNAME | 42 | CHAR | -- |
|||||
| STOTNET | 10 | NUM2 | 0.00 |
|||||
---------------------------------------------------------------------------------------------
Figure 6-4. Main Menu
USE THE SAVE FIELDS
Now that you have defined the save fields, you need to modify the field
definition for the fields that transfer data to, or receive data from,
the newly defined save fields. In this exercise, you use the save fields
in conjunction with three fields on the ORDER form and three on the
TOTALS form. Let's consider the order number first. Not only do you
specify that the order number on the ORDER form is to be transferred to
the TOTALS form, but you specify that it is to be incremented
automatically by 1 until it reaches 999999, after which the order number
is reset to 100001.