A Closer Look At Editing; More Details About Getting Into Edit Mode - HP 9000 200 Series Manual

Using the basic 5.0/5.1 system
Table of Contents

Advertisement

A Closer Look at Editing
This section provides a closer look at the BASIC editor
l
,
showing you more of its powerful
and easy-to-use features.
More Details about Getting into EDIT Mode
The EDIT command allows two parameters. The first is a line identifier and the second
is the' increment between line numbers.
For example, the following command tells the computer to place the program
011
the
CRT so that line 140 is in the current-line position.
EDIT 140,20
Also, any lines that are added to the program get a line number 20 greater than the
previous line.
If the increment parameter is not specified, the computer assumes a value of 10. Thus,
the following command tells the computer to place the program on the CRT so that line
1000 is in the current-line position, and added lines get a line number 10 greater than
the previous line.
EDIT 1000
\Vhen the line identifier
IS
not
supplied~
the computer has some interesting ways of
assuming a line number.
• If this is the first EDIT after a power-up. SCRATCH. SCRATCH A. or LOAD. the
assumed line number is 10.
• If EDIT is performed immediately after a program has paused because of an error,
the number of the line that generated the error is assumed.
• At any other time, EDIT assumes the number of the line that was being edited the
last time you were in EDIT mode.
1
The EDIT binary must bE' loadE'd in order to USE' thE' BASIC E'ditor.
6-14
Eniting ann Storing Programs

Advertisement

Table of Contents
loading

This manual is also suitable for:

9000 300 series

Table of Contents