Removing Duplicates

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Removing Duplicates

Post by andrewferguson » Sun Oct 06, 2013 4:50 pm

Hello,
I have a variable with about 1420 lines of text in it. Just under half are duplicates.
How do I remove the duplicated lines?
Thanks,
Andrew

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Removing Duplicates

Post by [-hh] » Sun Oct 06, 2013 5:37 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 12:10 pm, edited 1 time in total.
shiftLock happens

andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Re: Removing Duplicates

Post by andrewferguson » Sun Oct 06, 2013 6:46 pm

Hi,
Thanks [-hh]!
That works amazingly well!
Andrew

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Removing Duplicates

Post by [-hh] » Sun Oct 06, 2013 7:12 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 12:09 pm, edited 1 time in total.
shiftLock happens

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Re: Removing Duplicates

Post by bn » Sun Oct 06, 2013 9:22 pm

Hi,
I got it under a different topic from 'dunbarx' and 'bn' (they got it from ...)
well, I got it from RunRev:

in Livecode go to
Resources -> Sample Scripts -> Text -> Listing all the unique words in a piece of text (this is a slight variation of getting unique lines)

So thank you RunRev

Kind regards
Bernd

Post Reply