Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with already existing Databases
Message
 
To
26/01/2000 05:19:55
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00322688
Message ID:
00322886
Views:
22
Tom,
It sounds like what you want to do is start taking advantage of the MetaDbc. The Framework's documentation should help. Then all you have to do is add a record that points to your old database. When you build data environments the Framework will pull the views out of the correct database.

What I do is put all the multi-table joins that cross databases into the main database that the frameworks created.

Just one other thing. I've found that my applications work best if I reset the path in the BeforReadEvents method of the App. I just trap the current path get the location of the additional databases from the MetaDbc table and the append their paths to the one the framework created. Doing it in the BeforeReadEvents allows my app to work on mulitple systems that map the data differently. I just change the path in the MetaDbc and everything is fine. Take a look at the JustPath() function to get a proper path for the Database.

I hope this helps. Sorry for the long answer.
Bill
William Hartgrove
Senior Elephant Waxer
Hartgrove Amusent Park and Youth Hostel
Austin, Texas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform