AT&T 6300 Programmer's Manual page 186

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

CHAIN
Statement
Remarks
7-30
If
the Merge option is used, a MERGE
operation is performed with the current
program and the CHAINed program. The
CHAINed program must be an ASCII file.
If
any lines in the disk file have the same line
numbers as lines in the program in memory,
the lines from the file on disk will replace the
corresponding lines in memory. (MERGEing
may be thought of as "inserting" the program
lines on disk into the program in memory).
The MERGE option leaves the files open,
preserves the current OPTION BASE setting,
and preserves variable types and user-defined
functions, for use by the CHAINed program.
User-defined functions should be placed before
any CHAIN MERGE statements in the
program. Otherwise, the user-defined
functions will be undefined after the merge is
complete.
If
the MERGE option is omitted, the
CHAINing program is lost (except common
variables) before loading the CHAINed
program. CHAIN does not preserve variable
types or user functions. Thus, any DEFtype or
DEF FN statements containing shared
variables must be repeated in the CHAINed
program.
If
the ALL option is used, every variable in the
current program is passed to the CHAINed
program.

Advertisement

Table of Contents
loading

Table of Contents