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

4-16
Figure 4-10. Field Menu for ORDATE in the ORDER Form
CUSTOM ERROR MESSAGES
Whenever you specify a field edit, you should also provide a custom error
message to be issued by ENTRY when an entered value fails the field edit.
Otherwise, if a field fails the edit, a standard VPLUS/V message is
issued. Since the standard messages cannot be informative for a
particular edit, each field edit should have a message that tells the
user exactly why the entered value is incorrect. If an entered value
fails the edit, the custom message is issued instead of the standard date
type message. In this exercise, you will specify a custom error message
for the ORDATE field.
Action
Return to the Field Menu for ORDATE by pressing PREV until it is
displayed. Then add a custom error message to the field edit, as shown
in Figure 4-10. Press ENTER.
Whenever you want to continue the message onto another line of the Field
Menu, put quotation marks around the characters on each line and join the
two character strings with an ampersand (&). For example:
GE 1 "Enter quantity greater than" &
" or equal to 1."