>I have never seen a language work the way you want. Specifying the scope of variables. However, maybe VFP needs an option like VB, Option Explicit. So all variables must be defined.
>
PMFJI - C++ and C# both work that way (eg. all variables are local). In fact, they take it one step further and scope only within there curly-braces {}
eg.
void SomeMethod(bool MyLogical)
{
if(MyLogical)
{
// MyInteger is only local within these curly-braces
int MyInteger;
}
// MyInteger is out of scope here
}