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

4- 96
Table 4-10. Changeable Program Unit Characteristics
---------------------------------------------------------------------------------------------
|| | |
| Program Unit | Option (Default First) | Effect |
| Characteristic |||
|| | |
---------------------------------------------------------------------------------------------
|| | |
| Default numeric | REAL | Implicitly declared numeric |
| type (type | DECIMAL | variables are type REAL. |
| assigned to | | Implicitly declared numeric |
| implicitly | | variables are type DECIMAL. |
| declared numeric | | |
| variables). | | |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| Initialization of | INIT | Numeric variables are initialized |
| numeric variables | NOINIT | to zero. |
| to zero. | | Numeric variables are not |
| | | initialized to zero. |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| Implicit variable | NODECLARE | Implicit variable declaration is |
| declaration. * | DECLARE | legal. |
| | | Implicit variable declaration is |
| | | illegal. |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| Default of lower | BASE 0 | Default lower bound is zero. |
| bound of arrays. | BASE 1 | Default lower bound is one. |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| Trace statement | TRACE | Enables trace statements. |
| output control. | NOTRACE | Disables trace statements. |
|| | |
---------------------------------------------------------------------------------------------
Table 4-10 Note
* If an implicit variable declaration is illegal, using a variable that
is not explicitly declared causes an error. If the program is
interpreted, the error occurs at run time; if the program is
compiled, it occurs at compile time.
Table 4-11. Global Program Subunit Options
---------------------------------------------------------------------------------------------
||| |
| Program Unit | Option (Default | Effect |
| Characteristics | First) ||
||| |
---------------------------------------------------------------------------------------------
||| |
| Declare current | | Current program starts multi-program |
| program status in a | | application. NEWCOM allows new commons |
| multi-program | [ NONEWCOM] | when program loaded. NONEWCOM prevents new |
| application. Control | MAIN [ NEWCOM ] | commons. |
| creation and deletion | | |
| of COM areas. | | |
||| |
---------------------------------------------------------------------------------------------
||| |
| **The MAIN and | | Identifies current program as a module of |
| SUBPROGRAM global | | multi-program application, but not the |
| options control both | SUBPROGRAM | initial main. This program can not be RUN; |
| program execution and | | only a programmatic GET can run this |
| the creation and | [ NONEWCOM] | program. NEWCOM allows creation and |
| deletion of common | [ NEWCOM ] | deletion of COM blocks when the GET occurs. |
| areas. | | NONEWCOM prevents this. |