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

5-22
Figure 5-17. Field Menu for SHIP in the TOTALS Form
FORMATTING STATEMENTS
On the other hand, the two numeric values entered by the user in the
TOTNET and SHIP fields are not formatted. You can, however, use
formatting statements to align these entered values with the calculated
dollar value in other fields. Specifically, to format the values of the
TOTNET and SHIP fields in the TOTALS form, use the data formatting
statements STRIP and JUSTIFY.
Action
Locate the Field Menu for SHIP in the TOTALS form. Specify the
formatting statements, as shown in Figure 5-17. Press ENTER. Next,
locate the TOTNET field in the TOTALS form. Give this field the same
processing specifications. Press ENTER. Finally, for the sake of
consistency, return to the ORDER form and format the UPRICE field in the
same way as the SHIP and TOTNET fields on the TOTALS form. Press ENTER.
With these changes, all the dollar fields in both forms are formatted in
the same way. Table 5-3 lists the field specifications for the ORDER
form; Table 5-4 lists the field specifications for the TOTALS form.
Note that there is no way to provide a decimal point automatically for
NUM[n] type fields, as is done with IMPn type fields. If a decimal point
is not entered by the user, ENTRY assumes that a decimal point should
follow the last digit, but does not provide the decimal point or any
fractional values.