HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
2-: 18
Examples
>
LIST
100 GOTO 200
120 RESTORE 190
190 GOTO 110 !(Line 110 does not exist)
200 DATA ABC
>
RENUMBER
>
LIST
10 GOTO 40
20 RESTORE 30
30 GOTO 110 !(110 does not change)
40 DATA ABC
>
RENUM 20/40 TO 100 BY 5
>
LIST
10 GOTO 110
100 RESTORE 105
105 GOTO 110 !(110 does not change, but now exists)
110 DATA ABC
>
REN TO 500
>
LIST
500 GOTO 530
510 RESTORE 520
520 GOTO 530 !(110 becomes 530)
530 DATA ABC
SCRATCH Statement
The SCRATCH statement can be used to reset variables to their default
values, erase the current program, reset the values returned by
functions, or reset the entire interpreter environment.
Syntax
[ALL ]
[PROG]
SCRATCH [COM ]
[VARS]
Parameters
ALL Set the HP Business BASIC/XL interpreter environment to
the same state as that on initial entry following the
BBXL command.
COM Deallocates all variables. Also stops program execution
if the SCRATCH statement is in a subunit.
PROG Erases the current program in the interpreter's work
space. PROG is the default option set for SCRATCH.
VARS Deallocates all variables except those in common areas.
Also stops program execution if the SCRATCH statement is
in a subunit.
The options used with the SCRATCH statement permit you to select the
level of features to be reset. Thus, SCRATCH VARS resets only those