escape charactors for Blitz strings?

Blitz3D Forums/Blitz3D Programming/escape charactors for Blitz strings?

Craig H. Nisbet(Posted 2007) [#1]
Hey,

Do you guys know what the escape charactors are that will allow me to print quotes within a sting in blitz?


jfk EO-11110(Posted 2007) [#2]
print "like this: " + chr$(34) + " ??"
If so, then you need an ascii table.


Craig H. Nisbet(Posted 2007) [#3]
That's it! Thanks a bunch!


Jellon(Posted 2008) [#4]
I tried this and it doesn't work for a newline or a tab. instead it spits out this funky looking E thing. Anyway to tell it to insert a tab or a new line (other than giving the print command a void string)?


Dreamora(Posted 2008) [#5]
A newline on windows is CHR(10)+chr(13) not a single one.

and no, there are no escape characters in Blitz3D, use an ascii table and CHR


Beaker(Posted 2008) [#6]
Newline etc don't work for the Text command.


_33(Posted 2008) [#7]
Adding ANSI to Blitz3D is not impossible. I have written an ANSI parser myself, but I also wrote a 2D on 3D textmode to go with it. So it's a lot of hard work.


Jellon(Posted 2008) [#8]
I just can't seem to get it working.

this prints{
line 1 = EE
line 2 = EE
} but weird looking E's. No newlines other than those added automatically by the print.
I don't need a complete ANSI thing. The only thing I need to be able to do is write "\n" escape sequence say into a bank or file when poking/writing stuff into them one byte at a time.
Been trying to solve this on my own awhile. Any solutions? thx in advance.