Producing a list of duplicates

Skip Kimpel skiplondon at gmail.com
Wed Mar 22 15:22:37 EDT 2017


Thanks for everybody's advice.... yes, I totally forgot to check the Master
Library!  That thing has saved me so many times.

SKIP

On Wed, Mar 22, 2017 at 3:01 PM, Tom Glod via use-livecode <
use-livecode at lists.runrev.com> wrote:

> MASTER LIBRARY? how did I miss that....thanks for posting it :)
>
> On Wed, Mar 22, 2017 at 12:25 PM, Dr. Hawkins via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
> > On Wed, Mar 22, 2017 at 4:41 AM, Skip Kimpel via use-livecode <
> > use-livecode at lists.runrev.com> wrote:
> >
> > > I have a bunch of data records that contain email addresses. I need to
> > > search through that list and produce an list so those duplicates can be
> > > acted upon.
> > >
> >
> > repeat for each line theLin in theList
> >
> > add 1 to theVals[theLin]
> >
> > if theVals[theLin] > 1 then
> >
> > put theVals[theLin] into theDups[theLin]
> >
> > end if
> >
> > end repeat
> >
> >
> > theDups has duplicated addresses as it's keys, and the number of dups as
> > the values
> >
> > Or, you could extend and parse the actual email address out of each line,
> > and use *that* as the key, to catch situations like
> >
> > john at doe.com
> >
> > <john at doe.com> "John Doe"
> > <john at doe.com> "Johnathan Doe"
> >
> > In that case, I'd probably put
> >
> > put theLin into theDups[theEmail][theVals[theEmail]]
> >
> > so that you get a list for each type
> >
> > --
> > Dr. Richard E. Hawkins, Esq.
> > (702) 508-8462
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
>
> --
> *Tom Glod*
>
> CEO @ *MakeShyft R.D.A* - www.makeshyft.com
>
>
>
> Developer of *U.M.P* - www.IamUMP.com
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list