revdan at danshafer.com
Tue Mar 22 00:31:55 CST 2005
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.
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
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the use-livecode