HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)
130 Chapter4
Advanced Forms Design
Statement Syntax
Figure 4-2. Field Menu with Custom Error Messages
Checking Data Entered
The field attributes for the field determine the first checks made on the data in the field.
For example, if the field is required (FType=R), it is checked to be sure that the user has
entered a value in the field. Editing is performed according to the data type. For example,
if the data type is DIG, then the field is checked to be sure that only the digits 0-9 were
entered in the field. Next, the processing specifications are tested in the order they are
specified. As an example, consider the specifications in Figure 4-2. After making the checks
based on the field attributes, data entered in the field is tested to be sure that at least 5
digits were entered (MATCH ddddd), and optionally the value is checked for a hyphen and 4
more digits ([ - dddd ]). In all cases, the checks are performed by VPLUS when the
application calls the appropriate VPLUS intrinsics, as described in Section 6.
The following sections provide a summary of all the statements that may be entered in the
Processing Specifications area of the Field Menu. Each of these statements is fully
described later in this section.