Using VPLUS: An Introduction to Forms Design (32209-90004)
5-18
Figure 5-14. Field Menu for TAX in the TOTALS Form
The next Field Menu is for the TAX field, which is a display-only field
calculated from the tax rate and the discounted total.
Action
As shown in Figure 5-14, change the field type to D, the data type to
NUM2 to correspond to the other dollar values, and then go to the
Processing Specifications to enter the SET statement to calculate the
tax. Press ENTER.
Assuming the tax rate is 6.25, this statement sets the TAX field to 6 1/4
percent of the subtotal value in the SUB field. Remember that the value
of SUB is the net total less the discount.