AllExperts > FoxPro 
Search      
FoxPro
Volunteer
Answers to thousands of questions
 Home · More FoxPro Questions · Answer Library  · Encyclopedia ·
More FoxPro Answers
Question Library

Ask a question about FoxPro
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Markish
Expertise
I can answer general questions related to Foxpro from Version 2.0 to 9.0. I'll try to answer them as quickly as possible.

Experience
I've been into Dbase programming from age of 11. I've worked in versions from FoxPro 2.0 and Foxbase.
Education/Credentials
I've done my B.Tech (IT) with distinction from Anna University, Chennai - India.

 
   

You are here:  Experts > Computing/Technology > Databases > FoxPro > visual foxpro database

FoxPro - visual foxpro database


Expert: Markish - 9/13/2008

Question
Respected Sir,

I have stored all the tables and the database   in  data1 folder
I  am  opening the tables of database  in the form design database environment
Table property cursor database it takes data from data1 folder
But if I want to access data of other company in data2 folder what should I do.
I want to keep the forms reports and query same and access different database
Please advice  

Answer
Hi Allauddin,
  IMHO, if you are using the tables dynamically, I don't prefer Data environment. Instead I open all the tables in a new custom method from Form's load event. Using the variable for source directory. SOmething like

sele 0
mdir=CURDIR()
mfnam=mdir+"\test.dbf"
if !used('test')
  USE (mfnam)
endif

So whenever you want to change, just set the variable 'mdir' and call this form's method.


Hope this helps..
Best regards,
Markish

http://markishonline.com  

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.