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

4-12
The Error Message Parameter
A custom message is any series of up to 80 characters enclosed within
quotation marks. The message should follow the field edit statement,
either on the same line or a following line, and must precede any
subsequent processing statements.
Figure 4-6. Field Menu for STATE in the ORDER Form
Use a Table Check
Action
Use PREV to return to the Field Menu for ST; then use FIELD TOGGLE to go
to the processing specification area. Type IN $STATE, as shown in Figure
4-6. Press ENTER.
The edit statement insures that the state abbreviation entered in the
field is one of the 55 official abbreviations used by the United States
Post Office. Note that this field can be omitted (the field type is
still optional), but if any value is entered, it must be a valid state
abbreviation.
Other checks that might be made on the STATE field are:
IN "CA", "NY", "FL" Only 3 state codes (California, New York, or
Florida) are allowed and they must be all
uppercase.
NIN "GA", "Ga, "ga", "gA" Do not allow any state code for Georgia.