Action
Reads those values and assigns them to variables.
Syntax
READ var
Remarks
var Variable that
is assigned data value.
Difference with QB
It is important that the variable is of the same type as the stored data.
See also
DATA , RESTORE
Example
Dim A As Byte,
I As Byte, C As Integer,
S As XRAM String * 10
RESTORE dta
FOR a = 1 TO
3
READ i : PRINT
i
NEXT
RESTORE DTA2
READ C : PRINT
C
READ C : PRINT
C
Restore dta3 : Read
s : Print s
END
dta:
Data 5,10,15
dta2:
Data 1000%, -2000%
dta3:
Data " hello"
|