function zapAtEndOfLine tStr, tContainer put cr after tContainer replace tStr & cr with cr in tContainer return char 1 to -2 of tContainer end zapAtEndOfLine
-- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Aug 24, 2014, at 11:12 AM, JB wrote: > Hi, > > Thanks for the reply. > > I am saying if I have “ABC” in one string and the other string > has “KCFAJFCABC” then I want to delete the “ABC” from > the end of the second string leaving “KCFAJFC”. > > John Balgenorth > > > On Aug 24, 2014, at 8:09 AM, dunb...@aol.com wrote: > >> Hi. >> >> >> Are you saying that if you have "ABCD" and somewhere else you have: "AXFRZC" >> that you want to delete the "C" from the first string? >> >> >> Whatever you want, the chunking and text control within LC is more than >> adequate to do the job, and will be fun do execute as well. But is this what >> you meant? >> >> >> Craig Newman >> >> >> >> -----Original Message----- >> From: JB <sund...@pacifier.com> >> To: How to use LiveCode <use-livecode@lists.runrev.com> >> Sent: Sun, Aug 24, 2014 10:16 am >> Subject: delete end chars >> >> >> If I have a certain amount of characters >> and I want to check the end of another >> line of characters to see if they are there >> and if so then delete them what is the >> fastest way to do delete the characters >> at the end of the specified line? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode