Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local scoop wish
Message
 
To
09/11/2002 21:58:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00720623
Message ID:
00720719
Views:
12
>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
}
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform