Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Environment questions
Message
 
To
24/06/2002 16:02:09
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00671235
Message ID:
00672031
Views:
11
Darrell,

>Why do I need to use _ before and after the table name?

Actually, there's an "issue" with VFP that causes this to occur when using the Business Object Builder. If you want to get rid of the underscores, try this:

1. Launch the business object builder
2. Delete all data access objects from the data environment
3. Save changes and close the builder
4. Go back into the builder and add your data access objects back in.

>Also, I will want to read the location of the database from a registry entry. I know how to get the path from the registry, but how do I store it in the dataenvironment? This path could be different for every computer running my application.

The Framework does this for you automatically. You can store your database settings either in the Windows Registry or the MetaDbc.dbf table. At runtime, the Framework reads the setting and uses whatever you have specified as the location of the database.

If you're interested in using MetaData.dbf rather than the Windows Registry, check out the section in the Mere Mortals Developer's Guide "Specifying Additional Database Containers". It shows you how to use MetaDbc.dbf to data drive one or more databases in your application.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform