Reset the foreground color

Ludovic THEBAULT ludovic.thebault at laposte.net
Tue Oct 4 13:25:23 EDT 2016


Le 4 oct. 2016 à 19:15, Klaus major-k <klaus at major-k.de> a écrit :

> 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
> ...

Better ! Thanks !



More information about the use-livecode mailing list