Using VPLUS: An Introduction to Forms Design (32209-90004)
6-9
| | phase. |
| | |
| | If there is no phase header, the field edit phase is assumed. The |
| | FIELD header must be specified only if there are initialization |
| | statements. |
| | |
--------------------------------------------------------------------------------------------
| | |
| FINISH | Statements in this phase are executed only when data entered in |
| | all fields in the form have passed the field edits. |
| | |
| | Statements in this phase are executed in Browse mode after field |
| | edit phase statements have been successfully executed. |
| | |
| | The FINISH header must always precede any statements in this |
| | phase. |
| | |
--------------------------------------------------------------------------------------------
Figure 6-7. Diagram of Phase Processing
Figure 6-7 illustrates graphically how processing is performed on a
single form in each of the possible phases. Remember that the
initialization phase processing is performed only if any field has
initial values, has processing statements preceding a FIELD header, or
has processing statements that are preceded by the heading INIT.
Statements to be processed in the final phase must be preceded by the
header FINISH. If there are no initial values or phase headings, all
processing is performed in the field edit phase whether or not the FIELD
header is specified.