Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET DATABASE command
Message
 
 
À
05/12/2005 17:53:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01074980
Message ID:
01075153
Vues:
33
>Naomi,
>the situation is worse
>
>CLEAR
>
>MD temp1
>MD temp2
>CREATE DATABASE temp1\dbc1
>CREATE DATABASE temp2\dbc1
>CLOSE DATABASES all
>
>
>
>open DATABASE temp1\dbc1
>open DATABASE temp2\dbc1
>
>? "first return name only !!!"
>FOR k=1 TO ADATABASES(adbc)
>? adbc[k]
>NEXT
>SET DATABASE TO dbc1
>? "selected  the last opened !!  ",DBC()
>CLOSE DATABASES all
>
>?
>? " revert order"
>
>open DATABASE temp2\dbc1
>open DATABASE temp1\dbc1
>? "first return name only !!!"
>FOR k=1 TO ADATABASES(adbc)
>? adbc[k]
>NEXT
>SET DATABASE TO dbc1
>? "selected  the last opened ",DBC()
>CLOSE DATABASES all
>
>
>the solution is one only:
>
>open DATABASE temp2\dbc1 ALIAS blabla
>set database to blabla
>
We can not change all the code that opens the database. We fixed the places where we did SET DATABASE to use the full path. Still some changes are done in the local tables instead of the network tables. The DBC() shows the right table all the time during the save method.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform