If the problem comes back, let us know. It sounds like you did the right things but without seeing it, it's hard to tell. The errors you got are all symptoms of an undeclared global, so something wasn't right. But probably as you learn LiveCode it will all fall into place and by then you'll know what happened.
I'm really glad you are finding the experience rewarding. If you're like most of us, the affection just grows stronger over time.
Using Global Variables
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Using Global Variables
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Using Global Variables
But that is exactly how it works. Globals must be declared either in the handler that needs them, or in the script that contains that handler. If a reference is made in a handler to a variable that has the same name as the global, but that global is not declared either in the handler itself or in the script that contains it, then LC will interpret that variable either as local or as a literal, depending on how it is referenced.
Reread the several posts in this thread. Practice with a few controls on a test card somewhere.
Keep at it.
Craig
Reread the several posts in this thread. Practice with a few controls on a test card somewhere.
Keep at it.
Craig