Problem with declaring local variables
stephenREVOLUTION at barncard.com
Wed Jun 7 13:28:54 CDT 2006
If you are using Constellation - check the checkbox "Check Vars" at
the top of the editor window - I didn't know that was there and also
it doesn't sync with the IDE checkbox. This one drove me crazy for
weeks. Somehow the checkbox in the Constellation window got set
and... I made a fool of myself online...
>Until now I've had the impression that global variables need to be declared,
>whereas local variables do not. However, I've just noticed that (using Rev
>2.7, Mac OS X) if I don't declare the local variable before the scripting, I
>get an error message "Can't create a variable with that name
>(explicitvariables)". This occurs whether or not explicitvariables
>is true or false.
>However, the Rev directions indicate that it should not be necessary
>local variables if exlpicitvariables is false. Is this a bug?
>I've also noticed
>that whereas a previously developed stack may run OK with local variables not
>declared, that as soon as I make any slight change to the script the error
>message appears. I recognize that it's a good idea to declare
>to avoid inadvertent typos in the local variables, but it would seem this need
>to be addressed correctly in the directions.
s a n f r a n c i s c o
- - - - - - - - - - - -
More information about the use-livecode