Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When Close Tables Doesn't
Message
De
13/07/2005 09:38:43
 
 
À
12/07/2005 18:19:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01031910
Message ID:
01032187
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform