global variable change in substack not available to main stack

Bob Sneidar bobs at twft.com
Tue Jul 12 13:37:42 EDT 2011


There is another place in the message box where you can execute multiple commands. I think you can also execute multiple commands by separating them with a semicolon, but I might be wrong about that. 

Bob


On Jul 10, 2011, at 7:29 AM, Slava Paperno wrote:

> I'm curious about globals and the message box. I've been doing both
> (omitting the global declaration and including it) and I haven't seen any
> difference, but I've seen conflicting opinions in the posts here as well as
> some forums. What's the skinny on this?
> 
> Slava
> 
>>> In the Message box:
>> 
>>> put gBgColor
>>> --0, 0, 0
>> 
>> You have to declare the global variable. In the message box try
>> 
>> global gBgColor; put gBgColor
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list