Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if file is open exclusively ?
Message
From
06/05/2001 14:24:49
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00503929
Message ID:
00504019
Views:
30
>Hello,
>
>To determine if a file is open exclusively by another process try the following:
>
>lnHandle = fopen(otherfile,2) && Read Write
>llExcl = lnHandle > 0
>if llExcl
> = fclose( lnHandle )
>endif
>
>
>Glenn
>

Thanks for your answer Glenn, but I need to know wether *my* app has exclusive use of file, so I'll be using SYS(2011).

Just out of curiosity. If the other user has a lock on a particular record, would I be able to FOPEN it read/write?

Thanks again.

Alex
Previous
Reply
Map
View

Click here to load this message in the networking platform