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

4-1
Chapter 4 Full Field Edits
This section introduces the simple programming language provided by
FORMSPEC, called processing specifications. This language includes edit
statements that are used for full field editing, the subject of this
section. It also includes other types of statements that are used for
more advanced processing, as you will learn in later sections.
The edit statements consist of a statement name followed by one or more
parameters. They are entered in the Processing Specifications area of
the Field Menu and determine precisely how ENTRY tests any data entered
into that field. As shown in Section 3, if the data entered in a field
fails a simple field edit, ENTRY returns a generic error message.
However, the precision provided by edit statements requires more spe-
cific
error messages. FORMSPEC allows you to specify a custom error message
for each edit statement which lets the user know exactly what the problem
is and how to correct it.
The ORDFORM1 forms file contains one form (ORDER) that now has simple
data type and field type edits. In this section, you will learn:
Using FORMSPEC: Using ENTRY
* What the available edit statements are * Display custom error
messages
* How to specify custom error messages * Use REFRESH to clear data
from form
* Locate field to change (Main Menu) * Modify data in Browse mode
* Use FIELD TOGGLE (Field Menu)
* Enter processing specifications (Field
Menu):
* Single value comparisons (EQ,GE)
* Range checks (IN,NIN)
* Test for minimum length (MINLEN)
* Table checks (IN,NIN)
* Pattern match (MATCH)
* Custom error messages
_________________________________________________________________
| |
| :
RUN FORMSPEC.PUB.SYS |
_________________________________________________________________