Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Joel on Software
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01014573
Message ID:
01015339
Views:
27
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform