Re: File in use?
- From: Bernhard Sander <fuchs@xxxxxxxxxxxxxx>
- Date: Wed, 22 Jun 2005 01:07:09 +0200
Hi Jay,
Unfortunately, I realize I don't have the alias. Just the table name. How can I do it under these circumstances?
The most easy way would be: try to use the table exclusively without AGAIN. If the table is open in a different select area or if it is in use by a different workstation then you get some error and the table will not open.
SELECT 0
USE (table) EXCLUSIVE
If empty(alias()) && table did not open
*Table is in use somewhere else
Endif
dbf() will tell you the name of the table. So loop through all work areas and check with this function.2) Is there a function that will return the work area that a table is in use in?
aused() will list all work areas with open tables (at least available in VFP8, maybe also in VFP7, check help)
Regards Bernhard Sander .
- References:
- File in use?
- From: Jay Glenn
- Re: File in use?
- From: Dennis Longfellow
- Re: File in use?
- From: Jay Glenn
- File in use?
- Prev by Date: Re: Cannot access CHM on a network drive with XP
- Next by Date: Re: connect to sql server with app role
- Previous by thread: Re: File in use?
- Next by thread: Error 1709 database object in used by someone else
- Index(es):
Relevant Pages
|