In Hpyercard, the message box knew implicitely about globals declared and activated in any other script. However, in Revolution, also in MetaCard days, one always has to provide first the global command (eh, declaration). Msg box is just another stack, so such a variable is considered local unless told otherwise.

The other aspect of this threat sounds like a bug in Rev's compiler.

Robert Brenstein


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         |     [EMAIL PROTECTED]
HyperActive Software           |     http://www.hyperactivesw.com
_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to