quotes in strings

BlitzMax Forums/BlitzMax Beginners Area/quotes in strings

Jason Coggins(Posted 2007) [#1]
How do you get blitzmax to print quotes in side strings?

For example:

local text:string = "Sam said "Hello everyone" to the audience"
print text

The above code will not work.

Jason


REDi(Posted 2007) [#2]
local text:string = "Sam said ~qHello everyone~q to the audience"
or
local text:string = "Sam said "+Chr(34)+"Hello everyone"+Chr(34)+" to the audience"



Brucey(Posted 2007) [#3]
you use ~q

"Sam said ~qHello everyone~q to the audience"

See the "Literals" section of the documentation for more examples.