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

5-16
Figure 5-12. Field Menu for SUB in the TOTALS Form
MORE CALCULATED FIELDS
The next field after DISCNT is called SUB and contains the subtotal.
This value is the result of subtracting any discount from the net total.
The subtotal is another display-only field containing a dollar value.
Action
Change the field type (FType) to D and the data type (DType) to NUM2.
Then press FIELD TOGGLE to enter the SET statement that calculates a
subtotal, as shown in Figure 5-12. Press ENTER.