Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to eliminate duplicate record
Message
De
09/02/2005 11:02:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to eliminate duplicate record
Divers
Thread ID:
00985191
Message ID:
00985191
Vues:
51
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform