Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check for Exclusive Use
Message
 
 
To
13/07/2005 22:42:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01032489
Message ID:
01032492
Views:
12
>
>Is there a way to check if a table is being used EXCLUSIVE?
* Check if table is open exclusive by current application
IF ISEXCLUSIVE("mytable")
  ...
ENDIF
* Check if table is open exclusive by something else
TRY
  USE mytable EXCLUSIVE
CATCH TO oErr WHEN oErr.ErrorNo = 1705
  ...
ENDTRY
...
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform