data - store constants for subsequent READ access
statement stores numeric and string constants so that they can be
later read in using the
Constants appearing in a
statement must be separated by commas, spaces, or tabs.
Constants may be either numeric (integer, fixed point, floating point,
hex, or octal) or string (surrounded by quotation marks if the string
contains commas, colons, or significant leading or trailing spaces or tabs).
No expressions are allowed in the list.
If an underscore, single-quote, or "rem" appears in a
statement, it will be
interpreted as part of the data, not as a special BASIC symbol.
Any number of constants may appear in a
any number of
statements may be used in a module and
statements may be placed anywhere in a module.
The constants appearing in the
statements of a module form one continuous
list of items.
statements access the
constants appearing in
statements in order of their occurrence.
statement to reread information from any line in the
for i = 1 to 10
data 5.06, 2.36, 5.48, 7.42, 8.01
data 3.25, 3.26, 1.58, 2.24, 6.39
data "the end"
for i = 1 to 10
simply reads ten single-precision constants and one string constant
statements and then prints out those values.
If the variable type (numeric or string) given in a
statement does not agree with the corresponding Constant in the
statement, a "Syntax error" occurs.
statements are accessed in the order in which they appear in
The data statements of a module are private to that module. A module can
not read the data statements of other modules.
The Basmark QuickBASIC Programmerís Manual