HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
2-: 11
specified. This is relevant only when the program has a
name, that is, if it was retrieved by the GET command or
named with the NAME command. If you have just typed in
the program, and have not used the NAME command, the
program will not have a name.
FORMATTED The listing is formatted using a set of the compiler
FORMAT listing options that appear in the program if this
parameter is specified. The set of COPTIONS used to
format the interpreter listing are: LINES, LIST, ID
TABLES, PAGE, PAGESUB, TITLE, and TITLESUB. These are
explained in chapter 9.
The LIST command may add or remove blanks and parentheses to make lines
more readable. It also does the following:
* Lists lines in line number order, whether or not they were entered in
that order.
* Lists identifiers with first letters upshifted and all other letters
downshifted.
* Lists keywords in all uppercase letters.
* Lists empty statements as empty comments (for example, it lists the
line "500 Label:" as "500 Label: !").
The column at which long lines are broken depends on the output device
and WIDTH. On a terminal screen, the default line length is 80; on a line
printer, it is 132.
If a line exceeds the maximum length, the LIST command prints an asterisk
(*) in its last column and truncates the line at the maximum length.
To stop the LIST command, press CONTROL Y.
Examples
The following example shows the LIST command. Without parameters, the
LIST command below displays the entire program. When LIST has the
parameter 10/90, lines 10 through 90 are displayed.
>
10 real ALPHA, BeTa,delta
>
5 SHORT c, d, e
>
100 !
>
73 Correction:
>
LIST
5 SHORT C,D,E
10 REAL Alpha,Beta,Delta
73 Correction: !
100 !
>
LIST 10/90
10 REAL Alpha,Beta,Delta
73 Correction: !
>
LIST SUBS Command