Re: Deleting duplicate values in list

2002-11-06 Thread Zac Spitzer
Dowdell, Jason G wrote:
> Hi all,
> 
> Does anyone know of an easy way to delete duplicate
> values from a list.
> 
> For example:
> 
> List = "Jason, Jeremy, John, Jason, Jack"

i think the quickest way is to create a struct, make each list item a 
key in the struct and then return the structkeylist

z


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: Deleting duplicate values in list

2002-11-05 Thread Sean A Corfield
On Tuesday, Nov 5, 2002, at 10:57 US/Pacific, Randell B Adkins wrote:
> 
> 
>   
>   
>   
>   
>   
> 

Beware of how many comparisons (and list operations in general!) this 
does! Assume n unique items and it works like this:

n   compares
1   1 (against an empty list)
2   2 (1 against an empty list, 1 against a list with 1 elem)
3   4
4   7
5   11
6   16
7   22
8   29
9   37
10  46

"I can smell your brains!"
-- Mittens the Kitten : http://www.matazone.co.uk/theotherside.html

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: Deleting duplicate values in list

2002-11-05 Thread Dowdell, Jason G
Thanks for the link.
~Jason

-Original Message-
From: Everett, Al [mailto:AEverett@;askallied.com]
Sent: Tuesday, November 05, 2002 1:51 PM
To: CF-Talk
Subject: RE: Deleting duplicate values in list


ListDeleteDuplicates(): http://www.cflib.org/udf.cfm?ID=532
ListDeleteDuplicatesNoCase(): http://www.cflib.org/udf.cfm?ID=533

> -Original Message-
> From: Dowdell, Jason G [mailto:DowdelJG@;usano.ksc.nasa.gov]
> Sent: Tuesday, November 05, 2002 1:35 PM
> To: CF-Talk
> Subject: Deleting duplicate values in list
> 
> 
> Hi all,
> 
> Does anyone know of an easy way to delete duplicate
> values from a list.
> 
> For example:
> 
> List = "Jason, Jeremy, John, Jason, Jack"
> 
> Corrected_List = "Jason, Jeremy, John, Jack"
> 
> -
> Jason Dowdell
> IM-AES Web Developer
> 321.799.6845
> [EMAIL PROTECTED] 
> -
> 
> 
> 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Re: Deleting duplicate values in list

2002-11-05 Thread Randell B Adkins










>>> [EMAIL PROTECTED] 11/05/02 01:34PM >>>
Hi all,

Does anyone know of an easy way to delete duplicate
values from a list.

For example:

List = "Jason, Jeremy, John, Jason, Jack"

Corrected_List = "Jason, Jeremy, John, Jack"

-
Jason Dowdell
IM-AES Web Developer
321.799.6845
[EMAIL PROTECTED] 
-



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: Deleting duplicate values in list

2002-11-05 Thread Everett, Al
ListDeleteDuplicates(): http://www.cflib.org/udf.cfm?ID=532
ListDeleteDuplicatesNoCase(): http://www.cflib.org/udf.cfm?ID=533

> -Original Message-
> From: Dowdell, Jason G [mailto:DowdelJG@;usano.ksc.nasa.gov]
> Sent: Tuesday, November 05, 2002 1:35 PM
> To: CF-Talk
> Subject: Deleting duplicate values in list
> 
> 
> Hi all,
> 
> Does anyone know of an easy way to delete duplicate
> values from a list.
> 
> For example:
> 
> List = "Jason, Jeremy, John, Jason, Jack"
> 
> Corrected_List = "Jason, Jeremy, John, Jack"
> 
> -
> Jason Dowdell
> IM-AES Web Developer
> 321.799.6845
> [EMAIL PROTECTED] 
> -
> 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



Deleting duplicate values in list

2002-11-05 Thread Dowdell, Jason G
Hi all,

Does anyone know of an easy way to delete duplicate
values from a list.

For example:

List = "Jason, Jeremy, John, Jason, Jack"

Corrected_List = "Jason, Jeremy, John, Jack"

-
Jason Dowdell
IM-AES Web Developer
321.799.6845
[EMAIL PROTECTED] 
-


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com