manipulating attributes of text in fields from scripts

jonathandlynch at gmail.com jonathandlynch at gmail.com
Mon Apr 10 20:43:42 EDT 2017


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 <use-livecode at lists.runrev.com> 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"
> 
> 
> 
> do this?
> 
> I'm trying to completely obliterate any bold settings, and there may be
> bits of boldoff-boldon between characters(?) of the pdf source I paste.
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list