Posted by Bromosel on February 06, 2000 at 03:53:34:
I'm writing a program that will convert DIS/VAR files into MERGE-format.
Here's a code that writes into a MERGE-file one linenumber and one string:
10 OPEN #1:"DSK1.MERGEFILE",OUTPUT, DISPLAY, VARIABLE 163
20 LN=100 !this is the linenumber
25 STRING$="PRINT ""HELLO""" !This is the string to be written
30 !Calculating the High- and Low-Byte
50 PRINT #1:CHR$(HIGH)&CHR$(LOW)&STRING$&CHR$(200)&CHR$(0)&CHR$(0)
60 PRINT #1:CHR$(255)&CHR$(255)
70 CLOSE #1
After running this program, I can open MERGEFILE with the MERGE-Command
and when it is listed, it appears as a real program:
100 PRINT "HELLO"
But, when the string-length is larger than 16 bytes, the message
LINE TOO LONG appears. When I edit this line and press DELETE at the
end of line for a while, everything works. I can run it as a program.
My goal: Converting DOS-TXT files with TXT2TI to TI-DIS/VAR format, then
run a program that will convert DIS/VAR format into MERGE-format.
Post a Followup