Basic
MERGE pathname
Loads a BASIC program and merges it with the program currently
in memory. Program lines in
pathname
are inserted into the resi-
dent program in sequential order. The file must be in ASCII for-
mat; that
is,
it must have been saved with the A option.
If
line numbers in
pathname
coincide with line numbers in the resi-
dent program,
pathname's
program lines replace the resident pro-
gram's lines.
MERGE "prog2.txt"
MID$(
oZdstring,start[, length])
=
newstring
Replaces a portion of
oldstring
with
newstring.
Start
specifies the position of the first character you want to change.
Length
is the number of characters you want to replace.
M
I
D$ ("ABC DE FGH
I
J
I),
3,4)
A$=MID$(Z$,4,5)
MID$(string, start Llength])
Returns a substring of
string.
Length
is the number of characters in the substring.
It
must be in
the range
1
to
255.
Start
specifies the position in the string from which to get the
substring.
PRINT MID$("WEATHERFORD",
3,
2)
A$=MID$(T$,4,5)
MKDIR dirpath
Creates the directory specified by
dirpath.
M
K
D
I
R "A
:
\A
C
C
T
S
\
PAY AB LE"
MKDIR "\ADDRESS"
44
Tandy
1000