Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check for Exclusive Open?
Message
From
13/01/2003 23:05:38
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00741115
Message ID:
00741276
Views:
30
Yes, but if I try to open the table exclusive using an error handler that sets some flag and it is either not opened or in the case of use table in 0 exclusive again (where it may actually open but in shared mode), this will tell me that I cannot open the table exclusively. I don't really care if someone else has the table exclusively,shared or otherwise, or if it is being used in another data session, this should tell me that I cannot open it exclusively.

>>Nadya,
>>
>>You can use
>>
>>
?used("tablealias") and isexclusive("tablealias")
>>
>>to check for exclusive use.
>>
>
>Unfortunately, this doesn't work. The used and isexclusive functions check the current DS only. If the table opened in other DS or on another computer, we would not know. So, trapping for error is the only way to find out...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform