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

300 Chapter6
USING VPLUS INTRINSICS
INTRINSIC DESCRIPTIONS
VGETtype
Copies character coded data contents from data buffer into an application, converting
numeric value to specified type.
Syntax
VGET
type
{
comarea,fieldnum,variable
} [{,
numdigits,decplaces
}]*
Parameters
type
The
type
in VGETtype indicates that this intrinsic may be specified as:
VGETINT converts value to two-byte integer
VGETDINT converts value to four-byte integer
VGETREAL converts value to four-byte real value
VGETLONG converts value to eight-byte long value
*VGETPACKED converts value to packed decimal format (COBOL
usage
is comp-3
format); this intrinsic has two extra
parameters,
numdigits
and
decplaces
. Both are two-byte
integer variables that contain the number of digits and
number of decimal places, respectively, specified by the
COBOL
usage is
comp-3
data declaration.
VGETZONED converts value to zoned decimal format (COBOL) default
format); has the parameters
numdigits
and
decplaces
,
which are two-byte integer variables that contain the
number of digits and number of decimal places,
respectively, specified by the COBOL data declaration.
VGETYYMMDD converts date to a six-byte character value
For example: CALL "VGETINT" USING COMAREA,FIELDNUM,VARIABLE
CALL "VGETPACKED" USING
COMAREA,FIELDNUM,VARIABLE,NUMDIGITS,DECPLACES
comarea
Must be
comarea
name specified when the forms file was opened with
VOPENFORMF. If not already set, the following
comarea
items must be set
before calling VGETtype:
cstatus
Set to zero.
comrealen
Set to total number of two-byte words in
comarea
.
VGETtype may set the following
comarea
items:
cstatus
Set to nonzero value if call unsuccessful or if requested
field has an error.
fieldnum
Two-byte integer variable containing the number assigned to the field by
FORMSPEC.