READ
This command will read next available item from the DATA statement in your program and place the resulting data in a specified variable. You can create DATA statements using the DATA command, and you can reset the pointer to the data using the RESTORE command. You can read the data as integer numbers, real numbers or strings but you must ensure the DATA statements data types are in the same order as your program reads them. If you read data into a variable of the wrong type, a zero value or empty string is written into the variable.
SYNTAX
READ Variable
READ Variable#
READ Variable$
RELATED INFO
Basic Commands
Glossary
EXAMPLE
DATA Commands