HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
2-: 21
130 LET C=3
140 PRINT A+B+C
999 END
>SECURE 110/130
>LIST
100 INTEGER A,B,C
110 *
120 *
130 *
140 PRINT A+B+C
999 END
>MODIFY 120
Line 120 secured and cannot be modified.
In the above example, lines 110 through 130 were secured.
XREF Command
XREF is an interpreter command that generates a cross reference of the
entire current program, just the main program unit, or any procedure or
function of the current program. A cross reference is a list of the
identifiers in the specified part of the current program that includes
the following information: name, type, class, and line numbers on which
it is used. The cross reference is sorted according to identifier names.
Syntax :
[WITH LIST ]
XREF [
sub_name
[
,sub_name
]...] [WITH SOURCE] [TO
listfile
]
Parameters
sub_name
Either MAIN or the name of the procedure or function for
which the cross reference is to be generated. A cross
reference is generated from the entire program if this
is not specified.
WITH LIST If this parameter is specified, the cross reference
WITH SOURCE immediately follows the listing of the source code for
each individual part (MAIN, procedure, or function). If
it is not specified, the identifiers from the main are
listed under a banner containing the word MAIN, and
identifiers from each procedure or function are listed
under a one-line banner with the name of the procedure
or function.
listfile
The name of the file the cross reference is to be
printed to. If not specified, the cross reference is
printed to the destination specified by the SEND SYSTEM
OUTPUT TO statement (usually the terminal).
The cross reference is generated on a subunit basis. The following
information is provided for each identifier:
Name Name of the identifier.
Class Class to which the identifier belongs. Class
information is designed to convey dimensionality and
usage information. Dimensionality is specified by
SIMPLE, identifiers declared implicitly or explicitly as
scalars, and array identifiers declared implicitly or
explicitly with the DIM statement as arrays. For