Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local scoop wish
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00720623
Message ID:
00720729
Vues:
11
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
>}
>
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform