Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
? IsFlocked() behavior
Message
From
21/06/2001 12:49:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/06/2001 12:48:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00521938
Message ID:
00522009
Views:
12
>
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
Previous
Reply
Map
View

Click here to load this message in the networking platform