309
If the string data is invalid as numeric data, the
READ
statement assigns the value
0 to the numeric variable.
• The number of data values stored by the
DATA
statement must be equal to or
greater than that of variables specified by the
READ
statement. If not, a run-time
error occurs.
• To specify the desired
DATA
statement location where the
READ
statement
should start reading data, you use the
RESTORE
statement.
Run-time errors:
Reference:
Statement example:
DATA "ABC"
READ c
PRINT c
Output:
Error code
Meaning
04h
Out of
DATA
(No
DATA
values remain to be read by the
READ
statement.)
Statements:
DATA
and
RESTORE
0
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...