HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

4-: 97
||| |
---------------------------------------------------------------------------------------------
Table 4-11 Note
** The default value if neither is specified is MAIN NONEWCOM. The value
of this option is not set in the configuration utility nor is the
value displayed in the INFO command's display.
Syntax
[GLOBAL] OPTION
option_list
Parameters
GLOBAL Allowed only if the statement is in the main program.
If GLOBAL appears, the statement is a GLOBAL OPTION
statement; if GLOBAL is omitted, the statement is an
OPTION statement. A GLOBAL OPTION statement affects
every program unit in the program. An OPTION statement
affects only the program unit that contains it.
An OPTION statement overrides a GLOBAL OPTION statement,
but only while the program unit that contains it is
running.
option-list
A list of one to five unique options separated by
commas. Each option can be one of each of the following
pairs:
DECIMAL or REAL
INIT or NOINIT
DECLARE or NODECLARE
BASE 0 or BASE 1
TRACE or NOTRACE
With GLOBAL specified, one of the following additional
options can also be specified:
MAIN
SUBPROGRAM
MAIN NONEWCOM
MAIN NEWCOM
SUBPROGRAM NONEWCOM
SUBPROGRAM NEWCOM
The term "OPTION
x
statement" where
x
is DECIMAL, REAL, INIT, NOINIT,
DECLARE, NODECLARE, TRACE, NOTRACE MAIN, or SUBPROGRAM means an OPTION or
GLOBAL OPTION statement that contains the OPTION
x
. For example, the
line
120 GLOBAL OPTION BASE 1, REAL, NOINIT, NODECLARE
can be called a GLOBAL OPTION statement, an OPTION BASE statement, an
OPTION REAL statement, an OPTION NOINIT statement, or an OPTION NODECLARE
statement.
If a program unit contains conflicting OPTION
x
statements, then the
option active in the subunit is determined by the OPTION or GLOBAL OPTION
statement with the highest line number. An OPTION statement can reset
the same option that a GLOBAL OPTION statement has set in the main
program.
The following are the default options for a program unit without an
OPTION statement:
REAL
INIT
NODECLARE
BASE 0