Tandy 1000 Basic Reference Manual page 218

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10
I
BASIC
Keywords
MERGE
Statement
MERGE pathname
Loads
a
BASIC
program and merges it with the program cur-
rently in memory.
Pathnume
is a
standard file specification as described in Chapter
1. The filename is required. The file must be in ASCII format;
that is, it must have been saved with the A option.
Program lines in
pathname
are inserted into the resident pro-
gram in sequential order. For example, suppose that 3 lines from
pathname
are numbered
75, 85,
and 90, and
3
lines from the
resident program are numbered 70, 80, and 90. When you use
MERGE on the 2 programs, this portion of the merged program
is now numbered 70, 75, 80, 85, 90.
If line numbers on the new program coincide with line numbers
in the resident program, the new program's lines replace the res-
ident program's lines.
MERGE closes all files and clears all variables. Upon completion,
BASIC returns its prompt.
Example
Suppose you have a BASIC program on disk,
prog2.M
(saved in
ASCII), that you want
to
merge with the program you have in
memory:
MERGE
" p r o g 2 .
t x t "
merges the 2 programs.
216

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents