Removing Duplicates

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

Moderators: Klaus, FourthWorld, heatherlaine, 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 »

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] »

..........
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 »

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] »

..........
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: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: Removing Duplicates

Post by bn »

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