Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to check a table for duplicates???
Message
De
13/02/2002 09:37:47
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
13/02/2002 09:26:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00619081
Message ID:
00619432
Vues:
27
>Mind if I ask you one more question? Now that I have the cursor with dups, I created a temp table which has the 2 or 3 records that I am expecting. I need to compare record 1 with record 2 with record 3. What's the best way to do this? Sorry to bother you with such novice questions but I'm onsite and have no where to go.
>
>Thanks again,
>Sunshine

Sunshine,

A (simplified) way to compare records that I use (courtesy of Cetin, I believe) is using Scatter Name and the CompObj function.
USE MyTable in 0
SELE MyTable
GO Top
DO While !EOF()
	SCATTER Name oRecordObject01
	Skip
	SCATTER Name oRecordObject02
	cCompare = COMPOBJ(oRecordObject01,oRecordObject02)
	? cCompare
EndDo
You would want to modify it to handle what you need.

Renoir
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform