English
Language : 

NSB8 Datasheet, PDF (38/158 Pages) List of Unclassifed Manufacturers – BASIC interpreter for Z80 family
DATA
grifo®
ITALIAN TECHNOLOGY
STATEMENT:
DATA <list of constants>
ACTION:
The string and numeric constant values included in the list are stored as data and may be accessed,
in order, by the BASIC program of which they are a part. If a list contains more than one constant,
each constant must be separated from the next by a comma.
EXAMPLES:
1000 DATA “STRING DATA”, “NUMBER IS NEXT”,2
20 DATA 15
115 DATA 2, 7, 25, “HI”, 0
REMARKS:
The DATA statement provides a way to store information within the text of a BASIC program. This
data may be accessed by a running program when a READ statement is executed.
DATA statements may be placed anywhere in the program, and are ignored by BASIC except when
an attempt is made to access the information they contain. In other words, DATA statements are non-
executable.
ERROR MESSAGES:
SYNTAX ERROR
An improperly-formed constant was placed in a DATA statement (i.e, a string without the opening
or closing quote mark) and this results in a SYNTAX ERROR when a READ statement attempts to
access this constant.
SEE ALSO:
Statement READ
Statement RESTORE
Page 26
NSB8
Rel. 5.10