question about foregroundColor setting

Doug Lerner doug at webcrossing.com
Sun Jan 4 08:41:26 EST 2004


I thought of that, but in both cases the values are character strings. That
is, in both cases the value of the parameter evaluates to a character
string, so it should be the same.

There are no caveats about taking values from array elements are there?

doug

On 1/4/04 10:04 PM, "Thomas J McGrath III" <3mcgrath at adelphia.net> wrote:

> the second instance 'probably' has quotes put in around it versus the
> first which you put in without quotes. I don't know this but have been
> stumped by the quote thing before.
> 
> Tom
> 
> On Jan 4, 2004, at 5:13 AM, Scott Rossi wrote:
> 
>> 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
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
>> 
> 
> Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
> 2.1.2
> 
> 
> Advanced Media Group
> Thomas J McGrath III    € 2003 €    3mcgrath at adelphia.net
> 220 Drake Road, Bethel Park, PA 15102
> 
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list