Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File is in use
Message
From
21/12/2004 02:45:45
 
 
To
20/12/2004 22:22:24
Nitin Parulekar
New Zealand Software Corp Ltd
Hamilton, New Zealand
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
00970862
Message ID:
00970896
Views:
36
My rule of thumb: ALWAYS add the AGAIN clause when you USE a table. No drawbacks, only advantages, as far as I know. My opinion is that with SET EXCLUSIVE OFF, the AGAIN word should be implisit/redundant.
USE nir AGAIN
USE nir ALIAS nira AGAIN
SELECT * from nir INTO CURSOR c1 readwrite
USE IN SELECT('c1') 
USE IN SELECT('nir')
USE nir AGAIN
>i just found out other program opened that table with different alias and that's what causing the problem.
>following code should reproduce error for anyone
>
>USE nir
>USE nir ALIAS nira
>SELECT * from nir INTO CURSOR c1 readwrite
>USE IN SELECT('c1')
>USE IN SELECT('nir')
>USE nir && this line gives file is in use error
>
>i am wondering is there any way to find out if a table is open with different alias
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform