AT&T 6300 Programmer's Manual page 433

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

Syntax
variable
Remarks
READ
Statement
Reads values from one or more DATA
statements and assigns them to variables.
READ variable [ , variable]...
each variable in the list may be a numeric or string variable.
The type of the variable must agree with the type of the
associated value in the DATA sequence.
A READ statement must always be used in
conjunction with a DATA statement. READ
statements assign variables to DATA
statement values on a one-to-one basis. If the
data type (numeric or string) of an entry in the
data sequence does not correspond to the type
of the associated variable, a "Syntax error"
will result. However any numeric data type
(integer, single or double precision) may be
assigned to any numeric variable.
.
A single READ statement may access one or
more DATA statements (they will be accessed
in order), or several READ statements may
access the same DATA statement. If the
number of variables in the list of variables
exceeds the number of elements in the DATA
statement(s), an "Out of data" error message
is printed. If the number of variables specified
is fewer than the number of elements in the
DATA statement(s), subsequent READ
statements will begin reading data at the first
unread element. If there are no subsequent
READ statements, the extra data is ignored.
7-277

Advertisement

Table of Contents
loading

Table of Contents