question about foregroundColor setting
Doug Lerner
doug at webcrossing.com
Sun Jan 4 04:47:06 EST 2004
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...
doug
More information about the use-livecode
mailing list