Data or DataLong, Read, Restore (Define Data, Read Data, Restore Data)

Data (or DataLong) is used to define a list of constants that can then be read (using Read) into a variable array later in the program.

Syntax

Data (or DataLong) list of constants

Read [VarExpr]

Restore

Remarks

The Data statement is used to define a list of floating point constants. The DataLong statement is used to define a list of Long constants. Each constant in the list is separated by a comma. Data and DataLong can also use expressions if those expressions evaluate to a constant.

The Read statement is used to begin reading constants from the list defined by Data or DataLong into a variable array. A subsequent Read picks up where the last Read left off. The Read function does not assume a data type; therefore, it is up to the user to ensure that the variable/variable array into which the constants are loaded is the correct type (Float or Long).

The Restore statement is used to reset the location of the Read pointer back to the first value in the list defined by Data or DataLong. The next Read following Restore will begin with the first value of the data list.