global variable change in substack not available to main stack

Pete pete at mollysrevenge.com
Tue Jul 12 14:28:25 EDT 2011


Yes it is - which makes available until you log out.  Still have to be
careful what you use it for between stacks of course but at least you don't
have to declare it everywhere it's referenced.
Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Tue, Jul 12, 2011 at 10:40 AM, Bob Sneidar <bobs at twft.com> wrote:

> Isn't that a system variable?
>
> Bob
>
>
> On Jul 10, 2011, at 1:34 PM, Pete wrote:
>
> > Here's another twist on this.  The Message Box has the ability to create
> > "global variables" - click the 4th icon from the left in the toolbar at
> the
> > top left of the message bar.
> >
> > If you define a global variable with a name that starts with a $ sign, it
> > seems to be available from any script without declaring it, thus making
> it
> > truly global.  It also shows up in the Variables tab of the script editor
> > window.
>
>
> _______________________________________________
> 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