Reset the foreground color

Klaus major-k klaus at major-k.de
Tue Oct 4 13:15:42 EDT 2016


Bonsoir Ludovic,

> Am 04.10.2016 um 19:06 schrieb Ludovic THEBAULT <ludovic.thebault at laposte.net>:
> 
> Hello,
> 
> I've a field where i change color of some chars by script.
> If i want to "reset" the color of all my text this code doesn't work :
> set the foregroundcolor of fld "myText" to black
> I really need to do a repeat on all chars ???

yep, but this will do the trick:
...
set the foregroundcolor of char 1 to -1 of fld "myText" to black
...

> Thanks

Best

Klaus
--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list