EasyManua.ls Logo

Sharp MZ-700 - Chain

Sharp MZ-700
109 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...
44
CHAIN (chain)
Movement of execution from active program
to
program
in
file
Format:
CHAIN" [<device
name>
:]
<filename>
"
Note: Only FDn
or
CMT device name.
Abbreviated form:
CH.
Explanation:
The execution
of
the program
is
moved from the currently active program to a
different program in the file.
The
CHAIN
statement
is
also considered to be a file opening.
Although the
CHAIN
statement has a function similar to the execution of the
RUN
command in a program, the variables, arrays, etc.
of
the original program are
transferred to the new program without change when there
is
a chain.
Example:
1
0
A=l
20
8 =2
30
CHAI
N
"F
D 1
PROG"
40
END
..... The program
of
the file named
"PROG"
on the floppy disk in the floppy disk
drive (drive number 1)
is
executed.
In this instance, the value
of
variables A and B don't change;
A=1,
B=2.

Other manuals for Sharp MZ-700

Related product manuals