Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to see if file can be used exclusive w/o causing err
Message
From
15/08/2000 13:25:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00405024
Message ID:
00405081
Views:
20
>>Delete ?
>>
handle=fcreate(lcFile)
Cetin
>
>Actually my method is the FOPEN()/FCLOSE() pair, not FLOCK() - kind of similar, though.
>
>
nTry = FOPEN(cFile)
>if nTry >= 0
>  =FCLOSE(nTry)
>  USE (cFile) in 0 EXCL
>else
>  * forget it
>endif

That's the exact way I check :) Slight modification :
ntry = fopen(cFile,12)
Just paranoia :)
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