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

Chapter 6 233
USING VPLUS INTRINSICS
CALLING VPLUS INTRINSICS
CALLING VPLUS INTRINSICS
The examples in Table 6-2. show the format for calls to the VPLUS intrinsics from each
language, where:
intrinsicname
Identifies the intrinsic being called.
parameter
At least one parameter is required for each intrinsic; the particular
parameters are listed in the formats for the individual intrinsic
descriptions.
In order to provide consistency between calls from different programming languages, the
following rules apply to all parameters:
Parameters are passed by reference; this means that a literal value cannot be used as a
parameter. The exception is VSETLANG, which has one parameter that is passed by
value.
No condition codes are returned; the status of the call is returned in a status word
included as part of the
comarea
parameter specified in every intrinsic call.
Return type intrinsics are not allowed; any values returned by the intrinsic are sent to
the
comarea
or to a passed parameter.
Parameter Types
The data types that are used in VPLUS intrinsics are shown in Table 6-3. Note that not all
types are allowed for all languages.
Table 6-2. Examples of Intrinsic Call Formats for Each Language
Language Intrinsic Call Format
COBOL CALL
"intrinsicname"
USING
parameter
1 [,
parameter
2]…
FORTRAN CALL
intrinsicname
(
parameter
1 [,
parameter
2]…)
BASIC
label
CALL
intrinsicname
(
parameter
1[,
parameter
2]…)
PASCAL
intrinsicname
(
parameter
1[,
parameter
2]…);
SPL
intrinsicname
(
parameter
1[,
parameter
2]…);