Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When Close Tables Doesn't
Message
From
13/07/2005 09:38:43
 
 
To
12/07/2005 18:19:01
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:
01031910
Message ID:
01032187
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
>Could the other process be creating a "filtered result set" in a Select-SQL statement?
>I've found that a table in such a state (acting as a cursor but really a filtered
>result set) cannot be closed.

I've found it to be the other way around, a filter cursor is closed with close tables, a normal cursor isn't:
Clear
Close Tables All
Close Databases All

Set Safety Off
Create Database d:\test\temp.dbc
Create Table d:\test\test.dbf (iID I)
Use in Select("test")

* will generate a filter cursor
Select * from test into cursor curTest
Set
? "RESUME to Continue"
Suspend
? Dbf("curTest") 
Close Tables
Set
? "RESUME to Continue"
Suspend

* will generate a "normal" cursor, no filter:
Select * from test into cursor curTest nofilter
Set
? "RESUME to Continue"
Suspend
? Dbf("curTest") 
Close Tables
Set
? "RESUME to Continue"
Suspend
Set Safety On
Previous
Reply
Map
View

Click here to load this message in the networking platform