Merge - Epson TF-20 Reference Manual

Hx-20 disk basic
Hide thumbs Also See for TF-20:
Table of Contents

Advertisement

MERGE

To merge a specified program file into the program currently
in memory
MERGE [<file descriptor>[,R]]
MERGE "A:PROG3.ASC"
MERGE command merges the program file specified by
<file descriptor> into the program in the memory area
currently logged in The specified file must have been saved
in ASCII format If not, a BF ("Bad file mode") error occurs
If <file descriptor is omitted, the first file of the default
device will be read If any lines in the file have the same line
numbers as lines in the program in the memory, the lines in
the file will replace the corresponding lines in the memory If
the option R is specified, the merged program will be
executed after the MERGE operation BASIC always returns
to command level after executing a MERGE command
When a MERGE command is executed, all files open at that
time are closed and all variables are cleared However, if
<R> is specified, MERGE is executed with the files being
left open
(See SAVE)
4-18
To store left- or right-justified data in the random file buffer
LSET <string variable> = <string>
RSET <string variable> = <string>
LSET A$ = "EPSON"
RSET B$ = "TF-20"
To store data in the random file buffer, RSET or LSET must
be used
When the length of <string> is shorter than the length
assigned to <string variable> in the FIELD statement, the
string will be left- or right-justified (padded with spaces) to fill
the assigned length for the variable
If the length of <string> is greater than that assigned in the
FIELD statement, the excess length on the right end of the
string will be lost whether the statement executed is LSET or
RSET Before numeric values can be stored in the random
file buffer they must first be type-converted to strings by the
MKI$, MKS$ or MKD$ functions LSET and RSET can also be
used for strings which have not been allocated to the random
file buffer by the FIELD statement
4-19

Advertisement

Table of Contents
loading

Table of Contents