Global Madness
Dan Shafer
revdan at danshafer.com
Tue Mar 22 01:31:55 EST 2005
Jacque....
Yeah, I believe you're right. But in his original script, he had a
calculation assigning a value to the global and then putting the value
into the msg box and the msg box wasn't showing the value, just the
name of the global as if it had no idea what it was looking at.
Dan
On Mar 21, 2005, at 10:06 PM, J. Landman Gay wrote:
> I thought that's how all variables work. The compiler won't recognize
> it until it sees it the first time. That means that if it isn't
> declared until a handler runs, then it will be empty until that time.
> If you declare the global at the top of the script instead of just
> inside a handler, the compiler may see it sooner -- but I don't think
> you will get a value until a handler puts one in there.
>
> Local variables at the top of scripts should act the same way, I'd
> think.
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list