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 12:41:45
 
 
To
15/08/2000 12:20:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00405024
Message ID:
00405056
Views:
19
>Use FLOCK(). If it returns .f., then the file cannot be locked.
>
>use myfile
>if flock()
> use myfile excl
>else
> && whatever error coding you want
>endif
>
>

This isn't reliable. Someone else can grab the file between the FLOCK() and the USE EXCLUSIVE.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform