Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Joel on Software
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01014573
Message ID:
01015339
Vues:
30
Mike,

>I'm not sure I follow. You have more C experience than I do but in my dim grasp scope is very much like FoxPro's -- several options, with local scope being only the default.

In C every variable has to be declared explicitly to define it's type. 99% of the time this happens inside the function/method. That makes the variable scope local ie only the function/method can see the variable. Variables declared outside a function are global.

In Xbase unless it's declared LOCAL it's visible everywhere downstream in the calling stack. It's both a blessing and a curse. *g*
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform