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       [email protected]
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
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to