EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #204 background imageLoading...
Page #204 background image
Chapter
10
I
BASIC Keywords
LINE INPUT
Statement
LINE INPUT[;]["prompt";] string variable
Accepts an entire line
(a
maximum
of
255
characters) from the
keyboard. LINE INPUT
is
a convenient way
to
input string data
without accidental entry
of
delimiters (commas, quotation marks,
etc.).
Prompt
is
a
string constant enclosed in quotation marks that
BASIC prints before waiting
for
input.
String variable
is
the variable
to
receive the input.
The only way
to
terminate the string input
is
to
press
I.
However, if LINE INPUT is immediately followed by a semicolon,
pressing
[ENTER]
does not echo
a
carriage return
to
the display.
Note:
You must place a space between LINE and
INPUT.
LINE INPUT
is
similar
to
INPUT, except:
0
BASIC does not display a
?
when waiting
for
input.
0
Only
1
variable can be assigned at
a
time.
0
Commas and quotation marks can be entered in the string
0
Leading blanks are not ignored.
input.
Examples
LINE INPUT
A$
waits for input
to
A$ without displaying a prompt.
LINE INPUT "LAST NAME, FIRST NAME?
'I;
N$
displays the message and waits for input.
202

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals