Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing DBCs within an application
Message
 
To
07/08/2001 14:47:04
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00540872
Message ID:
00541340
Views:
23
>>I'm trying to figure out how to change what dbc my application points to programmatically. The DBC tables and such are the same, I just need to be able to point to one versus the other for debugging purposes.
>
>SET DATABASE TO MyDBC
>CLOSE DATABASE
>OPEN DATABASE FullPathOfMyOtherDBC
>SET DATABASE TO MyOtherDBC

I'm sorry, I didn't make myself very clear. I include the DBC in the project so when I create forms and I bind objects to a datasource I can get the listing to select what I want. The problem occurs when I actually run the program and execute code similar to yours, the form (which has the autoopen an autoclose properties for the dataenvironment) opens the tables that were used in developing the form.

red
red

Rodney E. Dixon
Mckee Foods Corporation
Collegedale, TN
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform