Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for activity
Message
From
05/03/2000 12:02:17
 
 
To
05/03/2000 11:14:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00341859
Message ID:
00341870
Views:
20
>Is there a way to programatically know if another process has a table open in a DBC?

You can test it like this:

lcError = on('error')
on error *

use mytable in 0

on error &lcError
return used('mytable')


If the table is open somewhere else in your system, you'll get an error 3. If the table is open exclusive any where, youl'l get an error 1705. But all you get returned is a .T. or .F.
Previous
Reply
Map
View

Click here to load this message in the networking platform