The computer automatically numbers your program by tens. After
you enter a line and press the RETURN key, the next line number
appears, and the cursor is in the correct place for you to type the
next statement. You can choose to have the computer number
the commands with any increment; you might choose 5 or even
50. Just place the number after the word AUTO and press
RETURN. To turn off the auto-numbering feature, type AUTO with
no increment, and press RETURN.
Renumber
If you write a program and later add statements to it, sometimes
the line numbering can be awkward. Using the RENUMBER
command you can change the line numbers to an even
increment for part or all of your program. The RENUMBER
command has several optional parameters, as listed below in
brackets:
RENUMBER [ [new starting line] [,[increment]
increment] [,old starting line]]] ] ]
The new starting line is what the first program line will be
numbered after the RENUMBER command is used. If you do not
specify, the default is 10. The increment is the spacing between
line numbers, and it also defaults to 10. The old starting line
number is the line number where renumbering is to begin. This
feature allows you to renumber a portion of your program, rather
than all of it. It defaults to the first line of the program. For
example,
RENUMBER 40„80
tells the computer to renumber the program starting at line 80, in
increments of 10. Line 80 becomes line 40.
Notice that this command, like AUTO, can only be executed in
DIRECT mode.
Delete
You know how to delete program lines by typing the line number
and pressing the RETURN key. This can be tedious if you want to
erase an entire portion of your program. The DELETE command
can save you time because you can specify a range of program
lines to erase all at once. For example,
DELETE 10-50
5-10