![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, just started working with FM8.5 this week, figured out how to find dupes, however, here's where I need a little help. I've found all the dupes in a database, let's call them "frames" and the list 200 items long. How do I delete 199 of them and keep just one? Thanks Pete -- P§³ |
#3
| |||
| |||
|
|
Hi, just started working with FM8.5 this week, figured out how to find dupes, however, here's where I need a little help. I've found all the dupes in a database, let's call them "frames" and the list 200 items long. How do I delete 199 of them and keep just one? Thanks Pete |
#4
| |||||
| |||||
|
|
Are you saying you have 200 copies of the same record? Find, Omit one record (the one to keep), then Delete All Records (which is in practice Deleting the Found Set, not all records in the file). On the other hand, finding dupes using the ! results in every record that is a duplicate. there could be a hundred pairs of dupes, any number of |
|
Quick and dirty pseudo script: Set error capture on Loop Perform Find [Restoring the dupes find] Exit loop if Get ( FoundCount ) = 0 Delete a record. ( Any record ) End loop Basically, your found set consists of nothing but records each of which is a dupe of some other record. Two, three or more in a dupe group, no |
|
When you delete a record that was found as a duplicate, then its twin is no longer a duplicate, and will not be found when the loop begins again; |
|
The only issue is that you are absolutely satisfied they are duplicates, and you need only one of each, not caring which one you keep. Save a copy |
|
Matt On 01/17/2007 01:06:34 "peter" <xvzex3qtgix (AT) verizon (DOT) net> wrote: Hi, just started working with FM8.5 this week, figured out how to find dupes, however, here's where I need a little help. I've found all the dupes in a database, let's call them "frames" and the list 200 items long. How do I delete 199 of them and keep just one? Thanks Pete |
![]() |
| Thread Tools | |
| Display Modes | |
| |