Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scope of USE command

Status
Not open for further replies.

rfedyk

Programmer
Feb 15, 2002
29
AU
I'm a novice to FoxPro.
If I code the following in a function:

use (monthly) in 1 as mthtab

Is the scope of mthtab local to the function or global. If it is local what do you have to code to make it global?

Roger Fedyk
 
A table alias is "global" to a point: it is possible to have more than one DataSession (for instance, a form can create a Private Data Session). If all of your forms use the Default Data Session and you don't create new ones, then for all practical purposes any table you open is Global.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top