HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
2-: 12
The LIST SUBS command prints the name and starting line number of every
subunit in the program, and indicates the currently executing program
unit with an asterisk (*). The LIST SUBS command is a command-only
statement. That is, it can only be issued at the interpreter prompt and
cannot be placed in a program.
Syntax
LIST SUBS
Example
The following example shows the use of the LIST SUBS command. When you
type LIST SUBS, the first line and subunit name are displayed for each
subunit in the program.
>
LIST
10 PRINT "this is the main"
20 CALL A
100 SUB A
110 PRINT " in sub a"
120 PRINT FNX
130 SUBEND
100000 DEF FNX
100100 PRINT " in fnx"
100200 RETURN 5
100300 FNEND
>
LIST SUBS
First Line Subunit name
---------- ------------
10 MAIN *
100 A
100000 FNX
MODIFY Command
The MODIFY command replaces, deletes, or inserts characters in one or
more program lines. The MODIFY command is a command-only statement.
That is, it can only be issued at the interpreter prompt, and cannot be
placed in a program.
Syntax
{MODIFY}
{MOD } [
line_range_list
]
The MODIFY command displays the lines of
line_range_list
one at a time.
If a program line occupies more than one physical line, each physical
line is displayed separately. When a line is displayed, the cursor is
positioned immediately under the beginning of that portion of the line
to be modified. Choose one of the editing commands in Table 2-4 or type
thecharacters to be replaced.