Sharp PC-1500A Instruction Manual page 113

Hide thumbs Also See for PC-1500A:
Table of Contents

Advertisement

All
and more about Sharp
PC-1500
at http://www.PC-1500.info
OPTION 2:
If
you
..
..,ant
to
identify
only
certain variables
to
be
saved type
the
following:
a:J
CBJ
CO
OD
COl
'"''"
l
[!J
"filename";
A.
B.C
In
this
instance
you have just specified variables A. B.
and
C as the ones to be saved on tape
under
the given
filename.
OPTION
3:
You can also specify
all
values
of related variables by typing:
m m
CO
CEJCTJ
ls"'"1rn
"filename":
a
!*l
The
*
symbol wil I
save
all
varieties
of
"B".
including
B { 1)
and
B
itself.
2.
Through a Program
To do
this.
simply
assign
a line
number to the
PR INT
#
command
in
your
program
.
You
may
use
any of the formats
described above. When SHARP encounters this line
numb~r
it
will automatically
activa
te
the
tape
recorder and begin
to transfer
the data
to tape
.
Once
again, PLEASE
experiment.
If things are not working, go back
to
the
previous secti<lns.
Somethi1'l9
1Jery
simple
may
have been
overlooked.
NOTE
:
The
file name represents
the
contents
of a character
string or
a character
variable
quotatcd
with
"
.
Therefore, if the first
variable
to
be
recorded
or stored as specifk'll without a file name
is
a
character variable, this
character
variable
is
regarded as
a
f ile name. In this case, be
sure
to
place a
file
name.
Example
1:
Example
2:
Example
3:
INPUT
#:
HI
AS
=
"TAPE"
20
PRINT# AS; X$
This
is
idential to PRINT
#
"TAPE"; XS
PRINT# X
This records
only
the contents
of
numerical variable X without a
file
name.
PRINT#
XS
This
does
not record only
the contents
of character
string X$ without a file
name,
but
the contents
of
XS
is
regarded as a
file
name. No semicolon (;)
is
placed
after
the
file
name, causing a grammar
error
CERROR 1) to
occur.
Therefore, if
the first variable
is
a character
variable,
be
sure to
place a file name as: PRINT#
"AAA"; X$
This
command allows the
same
formats
as
PRINT#
.
The
difference
is that
INPUT#
transfers
data
from tape to
the computer. (PR
IN
T#
transfers data from the
computer
to tape)
.
You can
use the
INPUT#
command manually
or as
par
t
of a
pr~ram.
Remember
to
prepare
the
'tape
recorder
before you
begin to
use
this
command
.
NOTE: •
If
the
number
of
recorded
data is smaller
than
that
of
data memories to be
loaded
with
them,
the
error
43
occurs
after
all
the data are transferred into the data memories
in the
INPUT#
statement.
If the number
of
recorded
data
is
larger
than
that
of
data
memories
to be
loaded
with
them.
data arc
tr~nsfcrred
until
the
data
memories
in
the
INPUT#
statement
are
loaded,
and
remaining variables
are
ignored.
11
t
Do not sale this PDF
!!!

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents