Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check for Exclusivity
Message
De
16/10/2001 22:18:19
 
 
À
16/10/2001 18:07:06
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00569279
Message ID:
00569370
Vues:
20
>I think so. Something like:
>
>USE myTable TRYEXCLUSIVE


Since this issue comes up all the time, it certainly calls for a language mod.

It seems to me that the straight-forward change would be to add a NOERROR keyword to the USE command. Thus:

select 0
use MyTable exclusive noerror
if upper(alias()) <> "MYTABLE"
wait window "Cannot open exclusive"
endif

You might also want to include a TIMEOUT N option.

Peter Robinson
Peter Robinson ** Rodes Design ** Virginia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform