Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
? IsFlocked() behavior
Message
De
21/06/2001 12:49:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
21/06/2001 12:48:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00521938
Message ID:
00522009
Vues:
13
>
function NotLockedByElse
>lparameters tcFile
>handle=fopen(tcFile)
>if handle>0
> * Not locked somewhere
> fclose(handle)
> return .f.
>else
> return ferror()=5
>endif
Also you could use
>if flock() && Attempt lock if not locked
>Cetin

LockedByElse would be more meaningful name :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform