Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine table in use?
Message
From
01/03/2005 21:19:36
 
 
To
01/03/2005 19:34:20
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00991775
Message ID:
00991850
Views:
13
An error handler is the only way to be sure. On a busy network, someone else can get the table between FOPEN and USE.


>Thank you both for the suggestions. I'll give them a try.
>
>I'm hoping that with FOPEN(), I can simply check FERROR() and not have to do anything with ON ERROR.
>
>>Try to open the dbf using FOPEN(), check what FERROR() returns, if it returns "Access Denied", the file is open somewhere.
>>
>>>Hi All,
>>>
>>>Is there a way to determine if a table is being used in a different datasession without having to loop thru all datasessions and checking with USED()?
>>>
>>>TIA
>>>
>>>Mike
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform