[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
READ Assign DATA Items to Variables
READ variable [,variable]...
Assigns values in DATA items to specified variables.
variable A numeric or string variable, or an array element.
-------------------------------------------------------------------------
Notes: A single READ statement can assign multiple DATA items to
multiple variables; or several READ statements can assign
the same DATA item to several variables.
The RESTORE statement makes it possible for your program
to reread DATA items.
Unless a RESTORE statement is executed, Turbo Basic moves
to the next DATA item with each READ assignment. If Turbo
Basic runs out of DATA items to READ, runtime error 4 (Out
of Data) occurs.
If you try to read a string constant into a numeric
variable, runtime error 2 (Syntax error) occurs.
See Also:
DATA
RESTORE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson