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

72 Chapter3
INTRODUCTION TO FORMS DESIGN
EASE OF FORMS DESIGN
Pascal and FORTRAN.
Figure 3-9. shows valid application data types and their values in COBOL, Pascal and
FORTRAN.
Initial Value
You may specify an initial value for the field. This value will be displayed in the field when
the form is first displayed at the terminal. It is also displayed when REFRESH is pressed
during data collection in ENTRY and the form is cleared to its initial values.
The value entered here is treated like user input. That is, it must match the data type of
the field and must not be longer than the field length.
(Refer to Section 4 for a discussion of how FORMSPEC uses these data types to perform
validity checks on data entered in the fields, and how data is treated during movement
from one field to another.)
If Native Language Support is used, you must specify the initial value in NATIVE-3000.
Table 3-8. Valid Screen Data Types
ARB Data Type COBOL Pascal FORTRAN
CHAR PIC X (_) Packed array CHAR [.._] CHAR
YMD as above as above as above
DMY as above as above as above
DIG as above as above as above
NUM[n] as above as above as above
IMP[n] as above as above as above
Note: [n] represents the number of decimal digits
Table 3-9. Valid Application Data Types
FORMSPEC COBOL Pascal FORTRAN
CHAR X Packed array CHAR [.._] CHAR *_
YYMMDD X(6) as above CHAR *6xx
ZONEn 9(_)Vn
PACKn 9(_)Vn COMP-3
SPACKn S9(-)Vn COMP-3
REAL REAL REAL
LONG LONG Double Precision
INT S9(4) COMP Subrange -32768..32767 Integer **2
DINT S9(4) COMP Integer Integer **4