Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if file is open exclusively ?
Message
From
05/05/2001 17:34:48
 
 
To
05/05/2001 17:04:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00503929
Message ID:
00503939
Views:
20
This message has been marked as the solution to the initial question of the thread.
>I'm writing a routine to open a file exclusively. If I find the file is already open, how can I tell whether it is opened exclusively other than by closing it and trying to opening it exclusively, trapping for error?
>
>TIA,
>
>Alex

Hi Alex,

You may use SYS(2011) function to retrieve lock status:
If Sys( 2011) = "Exclusive"
    && the table is opened exclusively
EndIf
HTH
Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform