Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET DATABASE TO when multiple DBCs with same stem are op
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00768192
Message ID:
00768341
Vues:
30
>Suppose you have database foo.dbc in c:\foo\data\, and another database foo.dbc (same name) in c:\foo\lastmonth\data\, and you'd like to work with both of them, so you open up both. Is there a way to reliably discern what will happen if you then call a program that executes "SET DATABASE TO foo"? It seems awfully ambiguous to me.

As Sergey wrote you can switch betwwen the databases writing full path in "set database to" command. But the questions still are open. What VFP does when the command is "set database to foo" (without path) ? How to check which database is current databes ?
IMHO VFP can act quite strange when two different databases with the same name are open. Yo can try to avoid editing in such situation and close the second database as soon as it is possible to make things more clear to VFP.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform