Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking open table
Message
De
02/11/2007 13:55:25
 
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 9 SP2
Divers
Thread ID:
01266141
Message ID:
01266157
Vues:
7
This message has been marked as the solution to the initial question of the thread.
>I have the code below:
>
> close data
> do backup.prg
>
>But suppose that my table is still open in a network
>I don't remember which is the command to check if table is in use

You can try to get an exclusive hold on the data like so:
ErrCode = 0
ON ERROR ERRCODE = 1
OPEN DATA <your dbc name here> EXCLUSIVE
if ERRCODE=1
 =MessageBox("File access is denied.")
else
 close data
 do backup.prg
endif
Yelena
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform