Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to eliminate duplicate record
Message
From
09/02/2005 11:02:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to eliminate duplicate record
Miscellaneous
Thread ID:
00985191
Message ID:
00985191
Views:
52
Hi all,

I used the following codes to get rid of duplicate records, sometimes it works fine and sometimes not.
use mytable
GO top
   
INDEX ON alltr(field1) TAG field1
*-- to erase duplicate field
DO WHILE !EOF()
	currfield=ALLTR(field1)
	SKIP
	IF EOF()
		EXIT
	ENDIF
	nextfield=ALLTR(field1)
	IF currfield=nextfield
		SKIP - 1
		DELE
		SKIP
	ENDIF
ENDDO

DELETE TAG field1

browse
Any suggestions or new type of coding would be appreciated.
Tia
Next
Reply
Map
View

Click here to load this message in the networking platform