A Simple Question

Blitz3D Forums/Blitz3D Programming/A Simple Question

martonic(Posted 2004) [#1]
Hi! In most languages I can embed a quotation mark in a string simply by inserting an escape character (usually the backslash) in front of it, but that does not work in Blitz. So the question is, how can I print a quote mark while using, for instance, the "Text" command?


Rob(Posted 2004) [#2]
Print "hello " +Chr(34)+ "world" +Chr(34)


By writing the ascii code for the character.


martonic(Posted 2004) [#3]
Thanks.

This does make the use of TextWidth (for example) on a string with quotes more tedious than it would be if one could simply type an escape character into the string.