DEFINE FIELDS FOR FORM ORDER [ USING VPLUS/V AN INTRO. TO FORMS DESIGN Self-Paced Training Guide ] MPE/iX 5.0 Documentation
USING VPLUS/V AN INTRO. TO FORMS DESIGN Self-Paced Training Guide
DEFINE FIELDS FOR FORM ORDER
Let's use the SET TO statement to assign specified values to display-only
fields.
Action
Locate the Field Menu for ORDATE in the ORDER form.
One method is to press PREV FORM twice and then press NEXT until the
Field Menu for ORDATE is displayed. Another method is to use the Main
Menu to go to the specified field. Which method did you use?
Now, to assign today's date to the ORDATE field, use the same
system-defined constant $TODAY that is used to edit dates (See Section
4). A value is assigned to the current field with the SET TO statement.
Action
In order to enter this statement, press FIELD TOGGLE to move the cursor
to the Processing Specifications area of the Field Menu for ORDATE.
Delete the previous statement and type in the new statement SET ORDATE TO
$TODAY as shown in Figure 5-6; press ENTER.
The SET edit statement is used in order to assign the value of today's
date to the ORDATE field. Note that the date is in the form mm/dd/yy.
The order, MDY, is determined by the data type of the field. (In order
to assign a date to a field, the data type (DType) must be MDY, DMY, or
YMD.) The Field Menu for ORDATE in the ORDER form now appears as shown in
Figure 5-6.
Figure 5-7. Field Menu for TPRICE in the ORDER Form
MPE/iX 5.0 Documentation