Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 6 using the wrong container ????
Message
From
14/04/1999 14:25:14
 
 
To
14/04/1999 14:18:03
Jeff Lovin
Dewitt & Company Inc
Houston, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00208317
Message ID:
00208323
Views:
24
>Hello,
>
>I have an application that we are moving from vfp5 to vfp6. For testing purposes, we have a development area, which has a copy of the production area tables.
>
>When I open up the "production" area manager, and use the database container for the production area, and I can go in and look at the tables and see that they are pointing and residing in the production area, but when I try and run the program from the manager, or create an executable, it always uses the development data.
>
>You all were such a wonderful help with my first problem, I wanted to see if you could help me with this..... Actually, that isn't true - I know someone out there can help me with this.... <grin>
>
>Thanks ahead of time....
>
>Jeff Lovin

It seems to be common problem: VFP DataEnvironment stores hard-coded paths to the tables/database you use in development environment. The common remedy is to reset DE.Cursor.Database properties in run-time:
***DE.BeforeOpenTables event
Thisform.SetAll("Database",cDataPathName,"Cursor") && it works if you don't have free tables in DE
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform