Replace Quotes with Escaped Quotes in String

John Dixon dixonja at hotmail.co.uk
Mon Dec 14 10:56:21 EST 2015


Does this work for you ?

on mouseUp
   put fld 1 into temp
   replace quote with "/" in temp
   put temp into fld 2
end mouseUp




> Date: Mon, 14 Dec 2015 05:50:17 -1000
> From: brahma at hindu.org
> To: use-livecode at lists.runrev.com
> Subject: Re: Replace Quotes  with Escaped Quotes in String
> 
> Are single quotes and double quotes equivalent in Livecode?
> 
> that would be new, i don't think soS
> 
> Single quotes do not work
> 
> *command*escapeQuotes*
> *
> 
> *put*fld"input"intojai
> *replace*'" ' with ' \" ' injai
> *put*jai intofld"target"
> 
> *end* escapeQuotes
> 
> gets us a script error
> 
> 
> BR
> 
> Peter TB Brett wrote:
> > Have you tried just using single quotes: '...'?
> >
> >                                  Peter 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 		 	   		  


More information about the use-livecode mailing list