Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local scoop wish
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00720623
Message ID:
00720729
Views:
10
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
>}
>
>
Previous
Reply
Map
View

Click here to load this message in the networking platform