Chain - Sharp MZ-700 Basic Manual

Disk basic interpreter
Hide thumbs Also See for MZ-700:
Table of Contents

Advertisement

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.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mz-2z009

Table of Contents