>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