Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing for active users ?
Message
De
31/01/2001 16:24:20
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
 
 
À
30/01/2001 14:47:28
Bruce Covey
Home Depot Television
Atlanta, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00470266
Message ID:
00470921
Vues:
31
I may be wrong but I believe you can first use fopen() (for read/write access) since fopen() attempts to open a file with exclusive access.

If fopen() fails it will return a -1 indicating the file is currently in use. If fopen returns a value > 0 you can fclose() it and immediately USE the table exclusive. Your only exposure should be during the short span between fclose() and using the table exclusive.

Although I believe this is accurate, please be sure to test this yourself.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform