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

4-17
The message is displayed by ENTRY in the window line of the form as a
single line.
Table 4-6. Summary of Current Fields in the ORDER Form
---------------------------------------------------------------------------------------------
|| ||| | |
| Field | Name | FType | DType | Processing Specifications | Initial Value |
| Num |||| ||
|| ||| | |
---------------------------------------------------------------------------------------------
|| ||| | |
| 8 | ORDNUM | R | CHAR | -- | 100000 |
|| ||| | |
| 1 | ORDATE | R | MDY | EQ $TODAY | -- |
|| ||| | |
| 2 | NAME | O | CHAR | -- | -- |
|| ||| | |
| 3 | ADDRESS | O | CHAR | -- | -- |
|| ||| | |
| 4 | CITY | O | CHAR | -- | -- |
|| ||| | |
| 5 | ST | O | CHAR | IN $STATE | -- |
|| ||| | |
| 6 | ZIP | O | CHAR | MATCH ddddd[-dddd] | -- |
|| ||| | |
| 7 | PHONE | O | CHAR | MATCH [(ddd(]b*ddd-dddd | -- |
|| ||| | |
| 9 |QTY |R |DIG |GE1 |-- |
|| ||| | |
| 10 | PARTNUM | R | CHAR | MATCH Puddd-??? | -- |
|| ||| | |
| 11 | DESCRIPTION | O | CHAR | ------ | -- |
|| ||| | |
| 12 | UPRICE | R | NUM2 | | -- |
|| ||| | |
| 13 | TPRICE | R | NUM2 | | -- |
|| ||| | |
---------------------------------------------------------------------------------------------
The current fields in the ORDER form should now have the simple and full
edits as shown in Table 4-6. In addition, the ORDATE field has a custom
error message. Actually, every field edit should have a message
associated with it, which provides more helpful advice on how to correct
the error than the generic message can provide.
Action
Proceed through the Field Menus adding custom messages to each field
edit statement. Table 4-7 provides suggested messages for each field
edit.