Tandy 1000 Basic Reference Manual page 134

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10 I BASIC Keywords
DATA
Statement
DATA constant [,constant,.
.
.]
Stores numeric and string constants t o be accessed by a READ
statement.
This statement may contain as many constants (separated by
commas) as can
fit
on a line (a maximum of 255 characters in-
cluding the word DATA, commas, and spaces).
DATA statements may appear anywhere it is convenient in a pro-
gram. BASIC reads DATA statements sequentially, starting with
the first constant in the first DATA statement and ending with
the last item in the last DATA statement.
String constants containing delimiters, such as leading or trail-
ing blanks, colons, or commas, must be enclosed in double quota-
tion marks when used in DATA statements.
The data types in a DATA statement must match with the vari-
able types in the corresponding READ statement, otherwise,
BASIC displays a "Syntax error."
Note that numeric expressions are not allowed in a DATA state-
ment.
To reread DATA statements from the beginning, use a RE-
STORE statement before the next READ statement.
132

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents