Line Numbers - Texas Instruments TI-99/4A User Reference Manual

Hide thumbs Also See for TI-99/4A:
Table of Contents

Advertisement

Line Numbers
Each program is comprised of a sequence of BASIC language
program lines ordered by line number. The line number serves as a
label for the program line, Each line in the program begins with a
line number which must be an integer between 1 and 32767,
inclusive, Leading zeroes may be used but are ignored by the
computer. For example: 033 and 33 will be read as 33. You need
not enter lines in sequential order: they will be automatically placed
that way by the computer.
When you run the program, the program lines are performed in
ascending sequential order until:
(1)
a ulaudl iUMI
ucliull is pel fUlllleu (see "Geuel al
PI
ugl alii
Statements")
(2)
an error occurs which causes the program to stop running (see
"Error Messages")
(3) the user interrupts the running of the program with a BREAK
command or by using the Break key
(CL.AA)
(4)
a STOP statement or END statement is performed
(5) the statement with the largest line num ber is performed
If
you enter a program line with a line number less than 1 or
greater than 32767. the message "BAD LINE NUMBER" will be
displayed and the line will not be entered into memory,
II·8
Examples:
>NEW
>100 A=27.9
>110B=31.8
>120 PRINT A;8
>130 END
>RUN
27.9
31.8
**
DDNE
**
>0 A=2
*
BAD LINE NUMBER
>33000 C=4
*
BAD LINE NUMBER
User's Reference Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents