Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the current SET DATABASE
Message
De
29/09/1997 14:29:18
 
 
À
29/09/1997 14:11:35
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nouvelle-Écosse, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00052221
Message ID:
00052226
Vues:
40
>Here's the current setup. I have an APP that opens different versions of a database. Each database is located in a separate directory. I've been using :
>
>CLOSE DATA
>OPEN DATABASE (myDBC)
>SET DATABASE to (myDBC)
>SET PATH to (the directory in which myDBC lives)
>
>The problem is , if the database table referenced in the forms DataEnvironment exists it will use this table instead of the one I want from the current Database setting. The only way to get it to use the correct table is to move the original directory referenced in the form's DE so Foxpro can't find the original.
>
>The other option would appear to be load the tables manualy in each forms DE OpenTables method. This, of course, is a major drag!
>
>Any other ideas ?

Basically, you have to reset DE.CursorX.Database properties in DE.BeforeOpenTables event.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform