EasyManua.ls Logo

Casio FX-795P - READ Variable name [, variable name]*

Casio FX-795P
133 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER
7
Command
Reference
a
A
space
following
data
is
not
disregarded.
Therefore,
anerror
will
be
generated
if
a
space
is
inserted
after
numerical
data.
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:
Variable
name:
Numeric
variable
or
character
variable.
An
array
variable
can
be
used.
Explanation:
1)
Allocates
data
in
the
currently
specified
DATA
statement
sequentially
to
a
specified
variable.
2)
Only
numéric
type
data
can
be
read
for
a
numeric
vaiiable.
3)
Data
in
DATA
statements
are
read
sequentially
with
the
smallest
line
number
first,
and
sequentially
from
the
beginning
in
a
statement.
4)
After
the
necessary
data
are
read
by'a
READ
statement,
the
following
data
are
read
by
the
next
READ
statement.
5)
The
first
data
in
the
program
area
where
a
READ
statement
exists
is
read
by
the
first
execution
of
this
statement
after
which
data
in
the
program
area
at
that
time
are
read
sequentially.
6)
The
specification
of
data
to
be
read
can
be
changed
by
a
RESTORE
state-
ment.
7)
When
the
number
of
data
in
a
DATA
statement
is
smaller
than
the
number
of
variables
in
a
READ
statement,
an
error
(Error
4)
occurs.
8)
When
a
space
exists
at
the
beginning
of
data,
it is
skipped.
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
|
|
|

Related product manuals