Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET DATABASE command
Message
 
 
To
05/12/2005 17:53:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01074980
Message ID:
01075153
Views:
32
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform