I read in the dictionary:

If you place the constant statement in a handler, you can use the constant 
anywhere in the handler. If you place the constant statement in a script 
outside any handler, you can use the constant anywhere in the handlers of that 
script. 

Any way to declare a global constant? I think I know the answer, but I thought 
I'd ask. 

Bob S


> On Jan 11, 2017, at 07:09 , Bob Sneidar via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> <snip> 
> 
> I was a few beers in when I wrote this. Upon thinking about this, what is 
> actually happening is that every stack becomes it's own mainstack in a 
> standalone. I think what I will do then is declare a constant with the name 
> of what I am calling the mainstack when I first launch it. Then I can simply 
> refer to that. In fact I'm going to call it the homestack instead. You are 
> right Jacque it shouldn't take much to refactor all this. 
> 
> Bob S
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to