Using VPLUS: An Introduction to Forms Design (32209-90004)
5-20
Figure 5-16. Field Menu for TOTAL in the TOTALS Form
The next field, TOTAL, contains the total cost of the order. The value
of TOTAL is calculated by adding the tax and any shipping cost to the
subtotal.
Action
Change the field type to D and the data type to NUM2. Then enter the SET
statement in the Processing Specifications area, as shown in Figure 5-
16.
Press ENTER.
The last field on the TOTALS form contains the customer name originally
entered on the ORDER form.
Action
Leave this field as is.
At this point, the user can enter a name or leave the field blank; later
you will see how the name can be transferred automatically from the ORDER
form.
TOPIC: DATA FORMATTING
Data generated by FORMSPEC as an initial value or as a display-only value
is formatted automatically according to certain general rules. This