Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
? IsFlocked() behavior
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00521938
Message ID:
00522198
Views:
10
>Doru,
>
>Thanks again. but...
>
>What if the file is locked() by another user on another machine...

Use fopen(), as explained.

>or locked in another form running with a private datasession... Then it appears that IsFLocked() does not work.

It does work, but you'll need to loop trough all datasessions, as... explained.

>I am really looking for a global IsFlocked() function. So far the only option I have is to attempt to Flock() the table. But I would prefer not to actually lock the table to determine the lock status. I may not have another choice.

Combine the two methods:
1 - check current VFP (not datasesion) session using IsFlocked() in a loop through all datasessions
2 - use fopen() for anything outside current VFP session
Doru
Previous
Reply
Map
View

Click here to load this message in the networking platform