Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check for Exclusivity
Message
From
16/10/2001 22:18:19
 
 
To
16/10/2001 18:07:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00569279
Message ID:
00569370
Views:
19
>I think so. Something like:
>
>USE myTable TRYEXCLUSIVE


Since this issue comes up all the time, it certainly calls for a language mod.

It seems to me that the straight-forward change would be to add a NOERROR keyword to the USE command. Thus:

select 0
use MyTable exclusive noerror
if upper(alias()) <> "MYTABLE"
wait window "Cannot open exclusive"
endif

You might also want to include a TIMEOUT N option.

Peter Robinson
Peter Robinson ** Rodes Design ** Virginia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform