Re: triggers, performance and help with...

2013-07-07 Thread Mark Rauterkus
Hi, My final script looks like this: on mouseUp tText, startPrior, endPrior put empty into tText put field "field1" into tText put tText put offset("Prior data", tText) into startPrior put offset("Concludes prior.",tText) + 15 into endPrior ---MR changed NewData to "" put ""

Re: triggers, performance and help with...

2013-07-06 Thread Mark Rauterkus
Hi All and Peter, Thanks for your help. Yes, that is what I need. Mark R ___ 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/mailm

Re: triggers, performance and help with...

2013-07-06 Thread Peter M. Brigham
On Jul 6, 2013, at 11:42 PM, Mark Rauterkus wrote: > My budding solution, but still needs a touch up on the first lines. > > Can "replace" include a "return" so that the words to be replaced can be > sure to be on their own line? > > > on mouseUp > -- slug in a cr before "Prior data" to be su

Re: Triggers, performance and help with a replaceText script with start and end text matches

2013-07-06 Thread Peter M. Brigham
On Jul 6, 2013, at 8:05 PM, Mark Rauterkus wrote: > Desired result is to remove all the text starting with "Prior data:" and > ending with "Concludes prior." put fld "performance" into tText put offset("Prior data: ", tText) into startChar put offset("Concludes prior.",tText) + 15 into endChar pu

Re: triggers, performance and help with...

2013-07-06 Thread Mark Rauterkus
My budding solution, but still needs a touch up on the first lines. Can "replace" include a "return" so that the words to be replaced can be sure to be on their own line? on mouseUp -- slug in a cr before "Prior data" to be sure content on that line is not eliminated. replace "Prior data:"

Re: triggers, performance and help with...

2013-07-06 Thread Mike Kerner
You could also just use offset and delete the characters between the two offsets. On Sat, Jul 6, 2013 at 9:57 PM, Mark Rauterkus wrote: > Hi John, > > Thanks. Reading up now about the new to me function of LineOffset. > > What I really want to do is NUKE the content from > Prior data: NUKE ALL T

Re: triggers, performance and help with...

2013-07-06 Thread Mark Rauterkus
Hi John, Thanks. Reading up now about the new to me function of LineOffset. What I really want to do is NUKE the content from Prior data: NUKE ALL THIS MIDDLE STUFF Might be 10-30 lines or so. Concludes prior. I think I may figure it out, given the pointer to LineOffset now. -- Ta. Mark Rau

Triggers, performance and help with a replaceText script with start and end text matches

2013-07-06 Thread Mark Rauterkus
Hi LC Folks, Our "Attendance App" for kids at our summer camp needs some serious performance help. The hit is huge when we keep data from various fields about a camper in various .txt files. I think I need triggers so updates and refreshing the data only occurs when desired, not at OpenCard. Get