Re: Replace Quotes with Escaped Quotes in String

2015-12-19 Thread Peter TB Brett
On 2015-12-19 21:09, Brahmanathaswami wrote: for closure on this This works; if tVisitorsInfo is empty then exit to top put getAddresses() into tAddresses put tVisitorsInfo into tBody replace quote with backslash & quote in tContainer put ("echo " & quote & tBody & quot

Re: Replace Quotes with Escaped Quotes in String

2015-12-19 Thread Brahmanathaswami
for closure on this This works; if tVisitorsInfo is empty then exit to top put getAddresses() into tAddresses put tVisitorsInfo into tBody replace quote with backslash & quote in tContainer put ("echo " & quote & tBody & quote & " | ") into tCmd put format ("mail

Re: Replace Quotes with Escaped Quotes in String

2015-12-16 Thread Peter TB Brett
On 16/12/2015 15:00, Brahmanathaswami wrote: Sorry but this did not work: replace "'" with "\'" in tBody put merge("echo '[[tBody]]' | ") into tCmd put format ("mail -s \"Visitor Care Notice\" -r \"no-re...@hindu.org\" " & tAddresses) after tCmd get shell(tCmd) tBody = Peter is visiting Kauai f

Re: Replace Quotes with Escaped Quotes in String

2015-12-16 Thread Peter TB Brett
On 16/12/2015 15:00, Brahmanathaswami wrote: Sorry but this did not work: replace "'" with "\'" in tBody put merge("echo '[[tBody]]' | ") into tCmd put format ("mail -s \"Visitor Care Notice\" -r \"no-re...@hindu.org\" " & tAddresses) after tCmd get shell(tCmd) tBody = Peter is visiting Kauai f

Re: Replace Quotes with Escaped Quotes in String

2015-12-16 Thread Brahmanathaswami
Sorry but this did not work: replace "'" with "\'" in tBody put merge("echo '[[tBody]]' | ") into tCmd put format ("mail -s \"Visitor Care Notice\" -r \"no-re...@hindu.org\" " & tAddresses) after tCmd get shell(tCmd) tBody = Peter is visiting Kauai from Scotland. He says "It's a great day...F

Re: Replace Quotes with Escaped Quotes in String

2015-12-14 Thread Brahmanathaswami
Ah... I see: so a string like this Peter is visiting Kauai from Scotland. He says "It's a great day...Finally I get a break from coding and get to leave this island in the northern hinterland and go to another one in the Pacific Blue." 1) first we escape the single quote "It\'s" 2) then wrap

Re: Replace Quotes with Escaped Quotes in String

2015-12-14 Thread Peter TB Brett
On 14/12/2015 15:50, Brahmanathaswami wrote: Are single quotes and double quotes equivalent in Livecode? that would be new, i don't think soS Single quotes do not work No, single quotes and double quotes are not equivalent in LiveCode. However, the shell ignores any escape characters or "

RE: Replace Quotes with Escaped Quotes in String

2015-12-14 Thread John Dixon
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: bra...@hindu.org > To: use-livecode@lists.runrev.com > Subject: Re: Replace Quotes with Es

Re: Replace Quotes with Escaped Quotes in String

2015-12-14 Thread Brahmanathaswami
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 w

Re: Replace Quotes with Escaped Quotes in String

2015-12-13 Thread Peter TB Brett
On 2015-12-13 21:01, Brahmanathaswami wrote: I'm trying out doing all dev now in 8 dp* since I have no immediate production projects that require deployment. So far so good, though I miss BV2 documentation... (which seems to hang the app if I leave it in my plug-ins folder) and LCBrowser (also

Replace Quotes with Escaped Quotes in String

2015-12-13 Thread Brahmanathaswami
I'm trying out doing all dev now in 8 dp* since I have no immediate production projects that require deployment. So far so good, though I miss BV2 documentation... (which seems to hang the app if I leave it in my plug-ins folder) and LCBrowser (also seems to be troublesome.) I'm trying to pa