triggers, performance and help with...

Mark Rauterkus mark.rauterkus at gmail.com
Sat Jul 6 23:42:38 EDT 2013


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:" with "return Prior data:" in field "field1"
   replace "Concludes data." with "Concludes data. return" in field "field1"

   put lineOffset("Concludes prior", field "field1") into whichLineEnd
   put lineOffset("Prior data:", field "field1") into whichLineStart
   put WhichLineEnd - whichLineStart into tempLines
   Add 1 to tempLines
   Repeat for tempLines
      Delete line WhichlineStart of field "field1"
   end Repeat

end mouseUp



--
Ta.


Mark Rauterkus       Mark.Rauterkus at gmail.com
PPS Summer Dreamers' Swim and Water Polo Camp Head Coach
Pittsburgh Combined Water Polo Team

http://Rauterkus.blogspot.com
http://FixPA.wikia.com
http://CLOH.wikia.com
412 298 3432 = cell



More information about the use-livecode mailing list