Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dbused in other work area
Message
 
À
13/01/2008 12:09:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01281470
Message ID:
01281473
Vues:
7
>Hi
>I want to check if the database open.
>When I used with 'dbused' I get .f. (not open) even when it's open by other user network.
>PS
>There is such command for check if tables exclusive?

Check with try...catch
TRY 
   USE e:\...\YourdataBase.dbc EXCLUSIVE 
   ...
   some code
   ...
CATCH 
   MESSAGEBOX("The Database is open")
ENDTRY
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform