Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing DBCs within an application
Message
 
À
07/08/2001 14:47:04
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00540872
Message ID:
00541340
Vues:
22
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform