To clear all styles, links, etc.:
put field "Whatever" into field "Whatever"
To clear only bold and leave everything else:
set the textStyle["bold"] of char 1 to -1 of fld "Whatever" to false
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile,
Also - to affect the field by id you need to say this:
Set the textstyle of char 1 to -1 of field id tgtg to empty
There is a difference between bolded chars and a bolded field. So, you would
need to know which is the source of bolding, or just fix them both.
Sent from my iPhone
> On Apr 10, 2
Try
Set the textstyle of char 1 to -1 of field "my field" to empty
You can also do this:
Put field "my field" into field "my field"
That will put the text - without formatting - into the field content
Sent from my iPhone
> On Apr 10, 2017, at 8:29 PM, Dr. Hawkins via use-livecode
> wrote:
>
I have a number of label fields which inadvertently have bold text in them.
I can identify these in a loop from their text, and put the long id of
the field into tgTg.
Shouldn't one of
*set* the textStyle of tgTg to "plain"
or
*set* the textStyle of char 1 to -1 of the text of tgTg to "plain"