Weirdness with global variable declaration
Wouter
wouter.abraham at pi.be
Mon Jan 19 05:15:19 EST 2004
On 19 Jan 2004, at 05:41, use-revolution-request at lists.runrev.com wrote:
> Message: 2
> Date: Mon, 19 Jan 2004 12:05:58 +0900
> From: Doug Lerner <doug at webcrossing.com>
> Subject: Re: Weirdness with global variable declaration
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <BC3178A6.235AE%doug at webcrossing.com>
> Content-Type: text/plain; charset="US-ASCII"
>
> 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
As this are globals is there a specific reason to do this intializing
on opencard?
Why not use openstack or preopenstack?
>>> .
>>> .
>>> .
>>>
>>> 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
Greetings,
WA
More information about the use-livecode
mailing list