Tandy 1000 Basic Reference Manual page 204

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10 I BASIC Keywords
LINE INPUT
Statement
LINE INPUT[;]["prompt";] string variable
Accepts a n entire line (a maximum of 255 characters) from the
keyboard. LINE INPUT is a convenient way t o 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
L I N E I N P U T
A $
waits for input to A$ without displaying a prompt.
L I N E I N P U T " L A S T
NAME, F I R S T NAME?
' I ;
N $
displays the message and waits for input.
202

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents