Clearing the font of field contents

Marty Knapp martyknappster at gmail.com
Sat Dec 27 12:02:50 EST 2014


Just use "set the textFont of word 1 to -1 of fld i to empty" you don't 
want "the text of" in there.

When I want to clear any fonts/sizes after a paste I use "put me into 
me" in a closeField script.


Marty Knapp
> I am having trouble clearing the textfont of the contents of field.
>
> I have tried
>
>           set the textFont of word 1 to -1 of  the text of fld i to empty
>
> and
>
>           set the textFont of word 1 to -1 of  the text of fld i to empty
>
> but both generate errors.
>
> I want to set the font by field after pasting it in from external sources
> (pasting is already done)
>
> What am I missing?
>
> Thanks





More information about the use-livecode mailing list