question about foregroundColor setting

Scott Rossi scott at tactilemedia.com
Sun Jan 4 05:13:59 EST 2004


On 1/4/04 1:47 AM, "Doug Lerner" <doug at webcrossing.com> wrote:

> I have the following statement in my handler:
> 
> set the foregroundColor of the last line of field "chatField" to msgColor
> 
> If I manually set the variable msgColor beforehand to "#000000" it works
> fine.
> 
> But if I take the value of msgColor from an array element (I think this is
> what is causing the problem) I get the following error:
> 
> Type    Chunk: can't set attributes
> Object    mainCard
> Line    set the foregroundColor of the last line of field "chatField" to
> msgColor
> Hint     #000000
> 
> You can see that the value of msgColor is the same as in my manual test. And
> I logged it to make sure there were no extra characters in the color string.
> 
> Could the mere fact that the value came from an array element be causing the
> problem? I don't see why...

Have you tried setting the textColor as opposed to the foregroundColor?

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com



More information about the use-livecode mailing list