Page 1 of 1

Filtering out quotes

Posted: Thu Feb 20, 2014 2:22 pm
by arkstar
I've been reading other posts, but none of the solutions seem to work.
I have a variable myVar="blah blah blah"
I want to remove the quotes so when I put the value into a field it is blah blah blah.

I've tried 'filter myVar without quote' & the replace command.
Does anyone have an idea?

Thanks!!!

Re: Filtering out quotes

Posted: Thu Feb 20, 2014 2:30 pm
by LCNeil
Hi Arkstar,

Something like the following script should allow you do strip the quotes from your variable

delete char 1 of myVar
delete char -1 of myVar
Kind Regards,


Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
-

Re: Filtering out quotes

Posted: Thu Feb 20, 2014 2:50 pm
by Klaus
Hi Robert,

hmm:
...
replace QUOTE with "" in myVar
...
works here for me!?

Code: Select all

on mouseUp
  put QUOTE & "text" & QUOTE into tVar
  put tVar into tVar2
  replace QUOTE with "" in tVar2
  put tVar & CR & tvar2
end mouseUp
Gives me this in the message box:
"text"
text


Best

Klaus

Re: Filtering out quotes

Posted: Fri Feb 21, 2014 9:08 am
by arkstar
Thank you Neil & Klaus!

Best,
Rob