EasyManua.ls Logo

Sharp MZ-800 - Page 106

Sharp MZ-800
221 pages
Print Icon
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...
CHAIN
Format
Explanation
CHAIN
‘‘[<device
name>:]
<filename>”’
<device
name>
must
be
CMT
or
RAM.
Abbreviated
Format
CH.
The
CHAIN
statement
transfers
execution
from
the
current
program
to
another
program
in
a
file.
The
CHAIN
statement
can
also
open
a
file.
Executing
a
CHAIN
statement
has
the
same
effect
as
executing
the
RUN
command
in
a
program
except
that
CHAIN
passes
variables
and
arrays
from
the
current
program
to
the
called
program.
<device
name>
may
be
omitted
when
the
default
device
or
the
device
specified
in
the
DEFAULT
statement
is
to
be
used.
10
A=1
20
B=2
30
CHAIN
‘‘CMT:PROG”’
40
END
In
this
sample
program,
control
is
passed
on
line
30
to
the
program,
from
file
“‘PROG”’
on
the
cassette.
The
values
of
variables
A
and
B,
1
and
2,
are
passed
to
the
called
program.
6-49

Other manuals for Sharp MZ-800

Related product manuals