Explicit variables... "syntax to which it applies"

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
erikhans08
Posts: 87
Joined: Wed Mar 25, 2015 2:01 am

Explicit variables... "syntax to which it applies"

Post by erikhans08 » Mon Jun 29, 2015 7:18 pm

LiveCode Dictionary:
set the explicitVariables to true
Specifies that local variables must be explicitly declared with the local command
Note: ExplicitVariables only come into effect when script is compiled,
such as in do, value and setting the script. Its value should be preserved
outside of user handlers, only setting it around syntax to which it applies
.
===
What does the last sentence mean?
I do get "error" when a local variable is already a script variable.
And there are some error messages associated with globals.
I also have to enclose constants as well as literals in quotes, i.e. "true".
All of which actually make the script easier to follow.

Thanks, Erik Hansen

Post Reply