Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exclusive
Message
De
30/11/2001 10:13:47
 
 
À
30/11/2001 10:06:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00587986
Message ID:
00587991
Vues:
20
Milt,
This still applies. You could something like this:
lcOnError = ON("ERROR") && save current error handler
llError = .f.
ON ERROR STORE .t. TO llError

USE < YourTable > EXCLUSIVE && attempt to open table

*-- check for error
IF llError
  *-- couldn't open table
ELSE
  *-- table opened successfully
ENDIF
ON ERROR &lcOnError && restore error handler
HTH
>Need a bit of refreshing here on my knowledge. I need to open a table exclusive but first need to determine if I can get exclusive use to that table. Way back I remember we turned off the default on error routine and create another error routine that would return I believe false but this was way back in pre Visual day. So I really not sure if this process will still work and more importantly even if it does I don't seem to have the code. Any help is appreciated. Thanks
Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform