Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Repeated records
Message
De
02/08/2007 02:04:02
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01245292
Message ID:
01245380
Vues:
19
Naomi,
>Check Eliminating duplicates in a table FAQ #8129

I just glanced over your FAQ, and your method 2 seems to use too elaborate
code for the way to process (not totally sure, before my first coffe<g>)

I am quite sure you can get by with no second table just by scanning the ordered testDupe
table and using the "compare" memvar. Eliminates all seeking, and you are elimianting
in the order given by dupe, which should be identical to testdupe with order set.

Perhaps a "delete while" instead of the second scan loop can make the code even easier -
check where the recordpointer is after the delete while, as I am not sure the outer
scan makes code easier than the normally slower "do while !eof()" as we have record pointer
movement inside the loop.

Sorry to be imprecise, but I know you have no problem to fiddle a bit with your own code ;-)

regards

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform