12-31-2004, 08:19 AM
Thanks
I found another one. The compiler (or the assembler) seems to have trouble with long strings in long lines:
The string "st$" resulting is trimmed in the first test whether by the compiler or the assembler.
I had to manually split like 200 lines with text in my text adventure
I found another one. The compiler (or the assembler) seems to have trouble with long strings in long lines:
Code:
Declare Sub Pres (t$)
' Isolate error
CLS
PRINT "Test 1 :: Long string"
st$ = "FATHER: 'I won't listen to you if you don't convince me that I can be proud of you! Just like before you told me you didn't want to be a lumberjack!'@'Besides that... I can't find a decent log today!'"
PRINT "OUTSIDE THE SUB, THIS IS THE STRING :: "; st$
Pres st$
PRINT
PRINT "Test 2 :: Split String (this works)"
st$ = "FATHER: 'I won't listen to you if you don't convince me that "
st$ = st$ + "I can be proud of you! Just like before you told me you "
st$ = st$ + "didn't want to be a lumberjack!'@'Besides that... I can't "
st$ = st$ + "find a decent log today!'"
PRINT "OUTSIDE THE SUB, THIS IS THE STRING :: "; st$
Pres st$
SUB Pres (t$)
PRINT "INSIDE THE SUB, I GOT THIS STRING :: ";t$
END SUB
The string "st$" resulting is trimmed in the first test whether by the compiler or the assembler.
I had to manually split like 200 lines with text in my text adventure
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i