Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of Tables
Message
 
To
26/07/2002 04:26:28
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00682892
Message ID:
00682906
Views:
16
>How can I programatically Know if one is using a particular table in the database. I have a stock taking program that only works for a user at a time.

You can try to use the table exclusively and trap the error
on error store .T. to InUse
use MyTable in 0 exclusive
if InUse
  * It's open else where
endif
Don't forget to save and restore the previous on error.
HTH
Caroline
Previous
Reply
Map
View

Click here to load this message in the networking platform