Page 1 of 1
Putting " inside a string
Posted: Thu Feb 09, 2012 8:37 pm
by PandaMan94
I'm trying to put some text in a field, and I want to have multiple " symbols inside it. But it keeps messing up the string, what can I do to have these inside? Thanks.
Re: Putting " inside a string
Posted: Thu Feb 09, 2012 8:56 pm
by Klaus
Hi Pandaman,
welcome to the forum!
You need to "create" the complete text including quotes like this:
...
put "This is" && QUOTE & "text in quotes" & QUOTE into fld "quoted text"
...
-> This is "text in quotes"
Best
Klaus
Re: Putting " inside a string
Posted: Thu Feb 09, 2012 9:30 pm
by PandaMan94
Thank you !!

Works perfectly!
Re: Putting " inside a string
Posted: Thu Feb 09, 2012 11:12 pm
by dunbarx
What Klaus said,
But do you fully understand that quotes are native parsers for literal strings? They will not appear on their own UNLESS you use the quote constant. Read about it in the dictionary.
So writing: put "xyz" --yields xyz
But: put quote & "xyz" & quote --yields "xyz"
Craig Newman