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

Click here to load this message in the networking platform