Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a SET LOCAL VARS ON
Message
 
To
29/08/2006 09:45:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01149279
Message ID:
01149420
Views:
10
Hilmar,

Although not quite the same, you can use _VFP.LanguageOptions = 1 to have the debuger inform you of undeclared variables. There are also a couple of programs out there in the community that help, but do not ask me the names for I completely forgot!

>Some languages have the option, not to make the variable local (or the equivalent in the corresponding language) by default, but to give a compiler error if the variable is not properly declared. I have seen something like this in Visual Basic, I think it was a command like "option explicit". (Note: My familiarity with VB is very superficial.)
>
>I would expect Visual FoxPro to behave similarly, with some option to give an error, or perhaps a warning, for non-declared variables - but I suspect it hasn't been implemented yet, even in the newest versions. Nor do I know if it would be easy to implement.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform