set the textStyle to not bold

J. Landman Gay jacque at hyperactivesw.com
Sat Oct 3 12:57:24 EDT 2009


Beat Cornaz wrote:

> Your script works as well as Devin's and also has the same 'shortcoming' 
> of not removing the style between words.

I haven't tested it, but it seems to me that you don't need to iterate 
through any chunks at all if you replace the entire htmltext as a whole. 
Try someothing like this:

   get the htmltext of fld "A"
   replace "<b>" with empty in it
   replace "</b>" with empty in it
   set the htmltext of fld "A" to it

That should catch all instances regardless of where they are, and would 
be faster than using a repeat loop.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list