Hi Guys
How do you add speech marks to a string? So, for example, I want the string to output “this is a not a joke” with the “” in the message
Hi Guys
How do you add speech marks to a string? So, for example, I want the string to output “this is a not a joke” with the “” in the message
double up the quotation marks, otherwise you can use chr(34) so it’d be: chr(34) + “this is a not a joke” + chr(34)
I tried to double up the quotes. It did not work. Why char(34)?
Hi @bobby
Actually you need three double quotes. At the beginning the first double quote opens string and the next two will place a double quote in the string. At the end the first two quotes will place the quote symbol in the string. The last double quote will close the string.
“”“this is not a joke”“”
if contained in a string
“I told you ““this is not a joke”” a million times”
Cheers.
Troy
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.