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

Chapter 1 31
VPLUS Overview
Product Overview
Advanced Processing Statements The advanced processing statements provide:
Data Movement You can set any field to a particular value, or to a value
moved from another field. Default formatting of the data is
performed during movement according to the data type of
the destination field.
For example, SET TO !JUNE 17,1999! moves the date
constant (which must be delimited by exclamation points)
to the current field. Another example, SET F1 TO F3,
moves the value in the field F3 to the field F1.
Arithmetic Calculation You can set any numeric field to a value calculated using
standard arithmetic operators (+, -, *, /, %).
For example, SET TAX TO TOTAL*TAX_RATE multiplies the
value in the field TOTAL by the value in the field TAX_RATE
and moves the result to the field TAX. (All these fields must
be numeric.)
Data Formatting You can specify particular formatting of the entered data
in addition to default formatting. Formatting includes:
STRIP, JUSTIFY, FILL and UPSHIFT.
For example, JUSTIFY RIGHT; FILL LEADING "0" moves
the data to the right of the field, and then fills any leading
blanks with zeros.
Forms Sequencing You can change the form sequence originally specified for
the form on the Form Menu.
For example, CHANGE NFORM TO $HEAD changes the next
form to the head form. The head form is the first form
displayed. One form is designated as the head form in the
globalcharacteristics.Anotherexample,CHANGE CFORM TO
NO REPEAT, stops the current form from repeating.
Conditionals You can execute a processing specification, or group of
specifications, but only if a particular edit is true.
For example, IF F1 EQ 20 CHANGE NFORM TO CLEAR
clears the current form and displays the next form when
the value of field F1 equals 20.
Phases You can execute processing statements in one of four
phases: configuration (CONFIG), initialization (INIT), field
editing (FIELD), and finish (FINISH).
Save Fields and Other Global Specifications
You can use the Save Field Menu to define special fields, called
save fields
, for the entire
forms file. These fields are global to the forms file, and can be referenced in the processing
specifications of any field in any form. Save fields are primarily useful for passing values
between forms.
FORMSPEC supplies certain global characteristics of a form as defaults, such as field or