Casio FX-730P Owner's Manual page 72

Table of Contents

Advertisement

62
CHAPTER 4
Programming with BASIC Language
The DEFM command cannot only be used in manual operation but can also be
used in a program. For
example,
if we wish to use array variables Z (0) to Z (20)
in a program and assign a numeric value J to
Z (J),
the program can be created
as follows.
Example
:
10 DEFM 20
··
·20
variables are expanded
.
20 FOR J=0 TO
30 Z(J)=J
40 NEXT J
20
l
Numeric values are assigned to the array
variables.
*When the DEFM command is used in a program, the number of variables
wi~l
not be
displayed
when executed.
The DEFM command is also used to display the current number of
variables.
DEFM only will be executed in this instance.
I
°'""
""MO
.
z:
26 M~CiEFM:
20
*When "DEFM" only is used in a program, the number of variables will be dis-
played when executing the program.
Notes:
1. If the variables are expanded, that specification will be saved even when the
power is turned off. Execute DEEM 0 to return to the standard 26 variables.
*The variables will return to the standard 26 if NEW
ALL~
is operated in
the WRT mode or if changed over to the DIM mode.
I
""" " ' "
MO
MOM
A· .z:26 DEFM:f1
2. If the number of bytes used to expand the variables is specified in excess of
the remaining free area, a MEMORY OVER error (Error 1) will occur to
protect the stored programs and data
.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents