HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)

Chapter 4 177
Advanced Forms Design
PHASES
specification statements. It is important to note that while specifications are entered field
by field, execution of the phases applies to the entire form. If you omit these phase
headings altogether, all statements are executed in the field edit phase.
Example
CONFIG
LOCALEDITS alphabetic
LIGHTB
DEVICE printer
INIT
SET TO 20.00
FIELD
IN 20:200
IF IN 100:200 THEN JUSTIFY RIGHT
FINISH
SET TO SAVE_FIELD_1
If you want statements to be executed in a particular phase, you must precede the
statements by the appropriate phase headings. Phase headings must be specified in the
order shown above.
Configuration Phase
If you use the configuration phase, the CONFIG statement must be the first statement in
the processing specification area on the field menu. The CONFIG statement is processed
only for the field in which it appears. The commands that can be used in the configuration
phase are: DEVICE, LIGHT and LOCALEDITS. (Refer to the "Processing Specifications for
Configuration" earlier in this section.)
Initialization Phase
The initialization phase occurs when VINITFORM is called. The processing that precedes
the display of the form is usually performed in this phase.
For each field in the form, the field is first initialized to any value specified in the Initial
Values box of the Field Menu. (By default, all fields are set to $EMPTY, all blanks). If any
initialization statements are included in the field processing specifications, these are
executed next. This process continues until all fields in the form are initialized.
If the form being initialized is a child or sibling to the previous form, data from the
previous form is transferred to this form (with conversion if necessary) before
initializations occur. Refer to "Form Families" in Section 3 for more information.
A SET TO source statement may be used to initialize field values.