Tandy 1000 Basic Reference Manual page 291

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

ChaDter 10 I
BASIC
Kevwords
RENUM
Statement
RE NUM [new Line1
[
[ I inel
[
increment1
I
Renumbers the program currently in memory. You can renumber
the entire program or renumber from a specific line to the end.
Line
is the line in the program where BASIC starts renumber-
ing. If you omit
line,
it renumbers the entire program.
New line
is the new line number assigned to
line.
If you omit
new line,
BASIC starts numbering at Line 10.
Increment
tells BASIC how to number the successive line. If you
omit
increment,
it increments by 10.
RENUM also changes all line number references appearing after
GOTO, GOSUB, THEN, ON/GOTO, ONiGOSUB, ON ERROR
GOTO,
RESUME, and ERL.
You cannot use RENUM to change the order of program lines.
For example, if a program has lines numbered 10, 20, and 30,
the command RENUM 15,30 is illegal, since this would place
Line 30 before Line 20.
Also RENUM cannot create line numbers greater than 65529. If
you attempt to do this, BASIC returns an "Illegal function call"
error and leaves the program unchanged.
If BASIC finds an undefined line number within the program, it
prints a warning message, "Undefined line
xxxx
in yyyy," where
xxxx
is the undefined line number and yyyy is the line where it
appears. RENUM renumbers the program despite this warning
message. It does not change the incorrect line number reference,
but it does renumber yyyy.
289

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents