Tandy 1000 Basic Reference Manual page 102

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10
I
BASIC
Ke.ywords
AUTO
Statement
AUTO [line]
[,
increment]
Automatically generates a line number when you are entering a
program. AUTO displays a new line number every time you
press
m.
Line
is the line number with which you want BASIC t o start
numbering. To start numbering with the current line number,
specify a period
(.I
as
line.
If you omit
line,
BASIC starts with
Line 10.
Increment
is the increment for BASIC t o use when generating
line numbers. You must precede
increment
with a comma
(,).
If
you want BASIC to use the increment of the last AUTO state-
ment, type the comma but omit
increment.
If you omit
increment
and the comma, BASIC uses 10. If you omit
line
but include
in-
crement,
BASIC begins numbering with Line 0.
If BASIC generates a line number that already exists in mem-
ory, it displays an asterisk after the number. To save the exist-
ing line, press
=
immediately after the asterisk and AUTO
generates the next line number.
To turn off AUTO, press [BREAK]. The current line is canceled and
BASIC returns to command level.
Examples
AUTO
generates line numbers beginning with Line 10 using incre-
ments of 10. For example, 10, 20, 30
....
AUTO 1 0 0 , 5 0
generates line numbers beginning with Line 100 using incre-
ments of 50. For example, 100, 150, 200
....
AUTO 7 0 0 ,
generates line numbers beginning with Line 700 using the in-
crement of the last AUTO statement, in this case 50. For exam-
ple, 700, 750, 800
....
100

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents