Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to release a cursor
Message
De
25/08/2005 06:49:11
 
 
À
25/08/2005 05:34:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01043728
Message ID:
01043743
Vues:
7
>I get some data using following commands
>
>SELECT CODE,DESC FROM MASTER;
>WHERE LEN(ALLTRIM(STR(CODE)))=6 .AND. DESC LIKE SNAME;
>ORDER BY DESC;
>INTO cursor TEST15
>
>
>But in other forms if I use above commands then it show following error message
>
>Cursor name is already in use
>
>
>How to release cursor name to get rid of above error message in other form?
>
>What should I write on unload event of form to release curosr?
>
>Please help



You close a cursor the same way you do with a table.
USE IN TEST15
or
SELECT TEST15
USE
or
* this one is better as it does not fail if it is already closed
USE IN SELECT("TEST15")


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform