Weirdness with global variable declaration
Doug Lerner
doug at webcrossing.com
Sun Jan 18 22:05:58 EST 2004
On 1/19/04 12:00 PM, "Scott Rossi" <scott at tactilemedia.com> wrote:
> On 1/18/04 6:37 PM, "Doug Lerner" <doug at webcrossing.com> wrote:
>
>> In an openCard handler I have:
>>
>> on openCard
>> global debugMode
>> global inChatUsers, newChatSocket
>> global chatRect, chatRectHalf, wbRect
>> put "8,8,596,314" into chatRect
>> .
>> .
>> .
>>
>> But a button in that card doesn't seem to know the value of chatRect.
>
> Did you declare the global in the button's script?
>
> global chatRect
> on mouseUp
> ...
> end mouseUp
>
Yes. I think the problem is that the openCard message itself is not being
sent when this stack is cloned!
Can you think of a reason that might be?
Thanks,
doug
More information about the use-livecode
mailing list