Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DBC exclusive
Message
De
19/08/1997 08:16:49
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
 
À
19/08/1997 08:01:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00045494
Message ID:
00045496
Vues:
25
>I was wondering if you can help me with this problem: I have to use a .DBC in exclusive.
>
>I did the following commands in the Load Method:
>
>Close Data All
>Use MyDatabase.dbc Exclusive
>
>After doing this, I opened a table (.dbf) from the database in exclusive. I made a ZAP and then an APPEND FROM. Until this point, everything was OK. The problem came up when I ran the .exe file from another machine. In the first machine, I had opened the database in Exclusive. So, in the second machine must appear a message because I have under control the error when I try to open a file that is opened in exclusive.
>
>I find out that the problem was that I was working in a Private Data Session. (In this way, the DataBase don't detect that it opened in exclusive and I don't know why). So, I put in Public Session and everything works OK. However, this isn't the best solution...
>
>After that I did the following
>
>USE MyDataBase.DBC Exclusive
>
>and when I tried to open a table, a message appeared saying that the table was in use (This is correct, and this is what I want it)
>
>I tried every fuckin' thing (Sorry) but I couldn't make it. I need to work in Private Data Session. Do you know what can I do? :-)
>
>
>Best regards,


I'm confused. If you USE a dbc, then you've opened the DBC as a table, NOT a database. If you try to use any of the tables in the DBC, you SHOULD get a file in use error, even if the dbc is opened shared. Databases are opened with OPEN, not USE.

Exclusive use does not depend on data session. Based on what I said above and this, there must be something else going on here. Use the debugger with DBC() and DBF() to ensure that you're pointing where you want to be pointing. Also make sure that the database is *EXCLUDED* from the project.

HTH
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform