Any number of constants may appear in a data statement, any number of data statements may be used in a module and data statements may be placed anywhere in a module. The constants appearing in the data statements of a module form one continuous list of items. Read statements access the constants appearing in data statements in order of their occurrence.
Use the restore statement to reread information from any line in the list of data statements.
restore for i = 1 to 10 read a(i) next i read b$ 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 print a(i) next i print b$simply reads ten single-precision constants and one string constant from the data statements and then prints out those values.
The data statements of a module are private to that module. A module can not read the data statements of other modules.
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber