AT&T 6300 Programmer's Manual page 223

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

Advertisement

Syntax
constant
Remarks
DATA
Statement
Creates an "internal" file, i.e., a sequence of
data belonging to the program. Each data
item can then be assigned to a program
variable by a READ statement. A DATA
statement should only be used in a program.
DATA constant[ , constant] ...
is a numeric or string constant. Any numeric format (Le.,
integer, hexadecimal, octal, single or double precision) is
acceptable for numeric constants. String constants in DATA
statements must be surrounded by double quotation marks
only if they contain commas, colons, or significant leading
or trailing spaces. Otherwise, quotation marks are not
needed.
DATA statements are non-executable and may
be placed anywhere in the program. A DATA
statement may contain as many constants as
will fit on a line (separated by commas). Any
number of DATA statements may be used in a
program.
A DATA statement in a program need not
correspond to a specific READ statement. This
is because before program execution, a data
file (the "internal file" as it is often called) is
created.
It
contains all the values of all the
DATA statements in the program in line
number sequence. When the program is
executed, READ takes its values from this file.
7-67

Advertisement

Table of Contents
loading

Table of Contents