Globals from the message box

Mike Bonner bonnmike at gmail.com
Mon Nov 28 18:08:01 EST 2011


Yep, messed around with this a bit and it does seem to work fine. If you
need to add a global later on, just declare that one once too and its added
to the list the message box can see. (or so it seems to me)

On Mon, Nov 28, 2011 at 4:01 PM, Bob Sneidar <bobs at twft.com> wrote:

> Wait, you are saying that I can refer to the globals later without first
> declaring them to be globals? I did not know that!
>
> Bob
>
>
> On Nov 28, 2011, at 12:57 PM, Mike Bonner wrote:
>
> > Seems like it should work but..
> >
> > To get around this weirdness, define the globals once in the message box
> by
> > themselves at which point they will "stick" and you can use them to your
> > hearts content.
> >
> > Meaning:
> > global gLogonSite,gSiteID -- once
> > at which point it seems that any and all future references to them from
> the
> > message box seem to work fine.
>
>
> _______________________________________________
> 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