Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Path for Dataenvironment
Message
From
12/07/2000 18:02:31
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00391559
Message ID:
00391571
Views:
9
>If the same application can be set up to run using test data or live data, where is the best place to change the table paths for the form dataenvironment? Also, is there somewhere on the UT that has sample code for doing this?

I have an entry in the CONFIG.FPW that does this. It can be one of three entries:

PRODUCTION
TEST
DEVELOP

If the entry isn't found, Develop is assumed. I have a property in my application object that holds the name of the DBC. I then OPEN the DBC and SET DATABASE TO the Dbc. After that, I don't have any problems. The data always goes to the correct location.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform