Putting " inside a string
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 2
- Joined: Thu Feb 09, 2012 8:34 pm
Putting " inside a string
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
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
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
-
- Posts: 2
- Joined: Thu Feb 09, 2012 8:34 pm
Re: Putting " inside a string
Thank you !!
Works perfectly!

Re: Putting " inside a string
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
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