HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
2-: 9
exceptions:
* If the label or colon occupies the specified column, then the rest of
the line begins in the next available column.
* If the specified column is beyond 72, then the rest of the line
begins in column 72.
A comment (beginning with "!") is listed in the column originally en-
tered (relative to the line number), if possible. If this is not pos-
sible because the statement occupies that column, then the comment
begins in the next available column.
If a modified line is too long, the LIST command displays:
* The line, except characters beyond the maximum line length.
* An asterisk (*) in the last column of the line (the asterisk is
character 500).
Examples
The following example shows the effect of the INDENT command. First, the
starting column of each line is set to seven and each nested line is
indented three. The second INDENT command changes the starting column
to three, and the indentation to five.
>
list
! exam217
5 ! BEGIN PROGRAM
10 DIM A(5),B$(2,4)[2]
20 INTEGER X,Y,Z
30 Loop1: FOR I=1 TO 5 !Fill A
40 A(I)=I
45 PRINT I
50 NEXT I
60 Loop2: FOR I=1 TO 2 !Fill B
70 FOR J=1 TO 4
75 REM INNER LOOP
80 B$(I,J)=CHR$(I)+CHR$(J)
85 PRINT I,J
90 NEXT J
100 NEXT I
999 END
>
indent 7,3
>
list
! exam217
5 ! BEGIN PROGRAM
10 DIM A(5),B$(2,4)[2]
20 INTEGER X,Y,Z
30 Loop1: FOR I=1 TO 5 !Fill A
40 A(I)=I
45 PRINT I