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