Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append from a cursor
Message
De
03/08/2006 14:57:16
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Append from a cursor
Divers
Thread ID:
01142780
Message ID:
01142780
Vues:
94
Suppose we have a cursor with some records tagged for export and we want to append these records into a table. VFP does not support APPEND FROM CURSOR soe we have to do something like:
select mycursor
copy to array myarray for somecondition
select newtable
append from array myarray
It appears that the copy to array command does not clean out any old data from the array so that subsequent appends pull in some of the old data that was not overwritten by the last copy to array command. This would be consistent with VFP documentation. (I think) So my question is - Is this technique the best way to accomplish an APPEND FROM CURSOR and if it is, how do I make sure the array is empty before I copy to array again?

Or is there a better way?


Thanks for any insights.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform