Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Repeated records
Message
From
02/08/2007 12:17:14
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01245292
Message ID:
01245528
Views:
24
Naomi,
select testdup
set order to CompMe
go top
*-- init to unequal to save cycles in loop
lcCompMe = iif(testdup.CompMe=="!", "?", "!")
scan
 if m.lcCompMe == testdup.CompMe
   delete while m.lcCompMe == testdup.CompMe
 endif
 lcCompMe = testdup.CompMe
endscan
should be enough, as the delete positions on the next "different".
Not tested... just secondary brain thinking while driving

regards

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform