set the textStyle to not bold

Beat Cornaz B.Cornaz at gmx.net
Fri Oct 2 14:26:57 EDT 2009


Hi all,

I have a field with text with different textStyles. Now I just want  
to remove the bold (or any other) textStyle from that field. So  
leaving all the underline, italic. box etc textStyle parts in order.

set the textStyle of fld "X" to not bold   is accepted by the editor  
but throws an error at runtime. Probably because not bold equals  
false and you can't set a textStyle to false

I could write a handler which checks the textStyle of every char and  
removes the bold, but I guess there is a more easy way.

Cheers, Beat




More information about the use-livecode mailing list