Sharp PC-1403 Operation Manual page 170

Hide thumbs Also See for PC-1403:
Table of Contents

Advertisement

164
Note:
It is not
possible
to
save the
contents
of
only one specific
element of an
array.
While fixed
variables
or
subscripted fixed variables
in
the form
of
A()
allow you
to save
only
one
specific element of
such
a variable,
an
array
(such as A),
defined
by
the DIM
statement,
allows
you
to save
in the same manner as other
arrays.
• If the PRINT
# statement
is
executed
with no variable
names specified, an error
{ERROR
1)
will
result.
-CAUTION-
The locations for
extended variables such as
A(27)
and beyond,
simple variables,
and/or array
variables must be set aside in the
program/data area
before
the PRINT#
statement
is
executed.
Otherwise,
the execution of the
PRINT
#
statement for
undefined
variables will result
in
an
error.
PRINT#
"DS-2";X(*).YS(*)
This
statement
saves the
contents
of all
the elements
(X(O),X(1 ),
... ) of
the array
X,
and of
all the
elements
(X$(0),
Y$(1
),
...
)
of
the array
Y$,
into the
tape file
name
'DS-2'.
PRINT
#
"DM-1
";AB,
Y1,
XY$
This statement saves the contents of
the
simple variables AB,
Y1,
and
XY$
into the tape
file named 'DM-1
'.
3)
Saving array variable contents
The
contents of
all variables
of
a specific array can be
saved
onto tape
by specifying
the array
name
subscripted by
an
asterisk enclosed
in
parentheses (*).
2) Saving simple variable (two-character variable) contents
The
contents of
simple variables
can
be
saved
onto tape by specifying the
desired
variable
names.
Verbs
PRINT#

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents