Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to check a table for duplicates???
Message
From
13/02/2002 09:37:47
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
13/02/2002 09:26:18
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00619081
Message ID:
00619432
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform