HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
G-: 4
described in this section is used to transfer execution control to
externals declared in an ANYPARM EXTERNAL statement.
Explicit declaration of procedures to be called by the ANYPARM method
allows you to specify additional options concerning the scope and name of
the external. External procedures can be declared in the main subunit of
the program to be GLOBAL to the entire program. Otherwise, the external
declaration is local to the subunit in which it is declared. A valid HP
Business BASIC/XL identifier can be aliased to the names of externals
which are not valid HP Business BASIC/XL identifiers, that is, procedure
names which begin with an underscore.
The formal parameter list is not included in the ANYPARM EXTERNAL
declaration since both the number and type of the formal parameters are
not restricted.
Syntax
[GLOBAL] ANYPARM [EXTERNAL]
ap_name_clause_list
Parameters
ap_name_clause_
A list composed of
ap_name_clause
elements with the
list
syntax:
[{,} ]
ap_name_clause
[{;}
ap_name_clause
]
ap_name_clause
The identifier used to call the external from HP
Business BASIC/XL together with an option that allows
the name to be aliased to the actual name of the
external. The syntax of
ap_name_clause
is:
ap_external_name
[ ALIAS "
alias_name
" ]
ap_external_ name
The meaning is dependent on the presence or absence
of the ALIAS option.
1. The ALIAS option is not present.
ap_external_name
is a valid HP Business
BASIC/XL identifier in lower case that is the
name of the external procedure in the
executable library to be called from HP
Business BASIC/XL. The maximum length of the
name of the external is 60 characters.
2. The ALIAS option is present.
ap_external_name
is a valid HP Business BASIC/XL identifier
used in the CALL statement in the HP Business
BASIC/XL program to reference the
alias_name
external procedure in the executable library.
The
alias_name
will be treated as the
case-sensitive name of the procedure in the
executable library.
In both cases, the
ap_external_name
is the identifier
to be used with the CALL statement.
alias_name
The name of the external procedure. The
alias_name
is case-sensitive. The maximum length of the name of
the external is 60 characters.
GLOBAL Use of the GLOBAL option is restricted to the main
program subunit. Use of the option specifies that
the ANYPARM EXTERNAL declaration is accessible to all
of the HP Business BASIC/XL procedures and functions
in the program. This allows external calls to be
made from the subunits without an additional ANYPARM
EXTERNAL declaration.
The CALL Statement to Externals Declared Using ANYPARM EXTERNAL
The CALL statement for an ANYPARM EXTERNAL procedure is similar to that