Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if file is open exclusively ?
Message
De
06/05/2001 14:24:49
 
 
À
06/05/2001 07:50:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00503929
Message ID:
00504019
Vues:
29
>Hello,
>
>To determine if a file is open exclusively by another process try the following:
>
>lnHandle = fopen(otherfile,2) && Read Write
>llExcl = lnHandle > 0
>if llExcl
> = fclose( lnHandle )
>endif
>
>
>Glenn
>

Thanks for your answer Glenn, but I need to know wether *my* app has exclusive use of file, so I'll be using SYS(2011).

Just out of curiosity. If the other user has a lock on a particular record, would I be able to FOPEN it read/write?

Thanks again.

Alex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform