That is pretty nice, but i would not want VFP to go that far! If variable would be local to an if statement for example, a good part of my code would crash!!
>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
>}
>
>