Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if file is open exclusively ?
Message
De
15/05/2001 11:30:00
 
 
À
15/05/2001 09:43:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00503929
Message ID:
00507344
Vues:
10
Thanks Mark. Alex

>This function works with any file not just a dbf.
>
>
>
>	* Function returns true if file or table can be locked for writing
>	Func LOCKABLE
>	Lparam lcFile
>	Local lcRetval,liHandle
>	lcRetval=.f.
>	liHandle=fopen(lcFile,12)
>	If liHandle>0
>		lcRetval=.t.
>		=fclose(liHandle)
>	Endif
>	Return lcRetval
>
>
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform