Casio FX-795P Owner's Manual page 86

Hide thumbs Also See for FX-795P:
Table of Contents

Advertisement

CHAPTER 7
Command Reference
a
DATA
1,
2u,;
3,
Example:
cr Bs Ay
These spaces are not disregarded.
Variable name [, [variable name] ]*
READ
Function:
Reads the content of a DATA statement.
Parameter:
An array variable can be used.
Explanation:
158
aa
ST
7-2
Program Commands
Example:
1@ DATA 1,2,3
2@ READ A,B
30 PRINT A3B
4@ DATA 4,5
5@ READ C,D,E
- 6@ PRINT CIDE
7@ END
* Reads data sequentially from a DATA statement and displays them.
[Line No.]
®
Numeric-expression
RESTORE
Function:
Specifies the location of data to be read by a READ statement.
Parameter:
Line No.:
Numeric expression. Values below the decimal point
are discarded.
1-¢ line No. ¢ 9999
Explanation:
1) Specifies
a DATA statement where data to be read by a READ statement
exist.
2) When a line number is omitted, the data specification is cancelled. After this,
the first data in the program area where a READ statement exists are speci-
fied and read by the first READ statement that is executed.
3) When a line number of the program area is specified by a RESTORE state-
ment, data of the DATA statement with this line number are read sequential-
ly by the READ statement.
4) When a specified line number' does not exist or a DATA statement does not
exist on a specified line number and after, an error (Error 4) occurs.
159
|
| |

Advertisement

Table of Contents
loading

Table of Contents