Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding Cursors - Followup
Message
De
11/10/1999 14:58:37
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00274264
Message ID:
00275092
Vues:
28
You can save yourself 2 steps in your code by issuing the command:
USE IN table1
This replaces:
SELECT table1
USE && release table
SELECT myCursor

This will
>With the help of my father who has been doing FoxPro 2.6 development for 15 years I think I have found the answer to my cursor problem.
>
>I use SELECT statements to retrieve all my data from tables. I was under the assumption that once the SELECT command obtained the information from the FROM tables that it closed those tables. This does not seem to be the case. After a SELECT statement the tables are left open in their own workspace.
>
>It works like this:
>
>SELECT * FROM table1 INTO CURSOR myCursor
>SELECT table1
>USE && release table
>SELECT myCursor
>[PERFORM OPERATION]
>USE && release cursor
>
>I hope that I have helped prevent some long nights that I had to suffer through to find out what was going on.
>
>Cheers!
>Tadd Bryan.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform