RE: Removing dupes from list

2000-12-11 Thread Stolpner, Richard J

Try the following code:














#ListTwo#




==

-Original Message-
From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 11:34 PM
To: CF-Talk
Subject: RE: Removing dupes from list


try some of these:

http://devex.allaire.com/developer/gallery/SearchResults.cfm?keywords=duplic
ate

-Original Message-
From: Scott Mulholland [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 2:17 PM
To: CF-Talk
Subject: Removing dupes from list


If i have a list like:

2,10,3,1,2,9,9,2

what is the easiest way to parse out the dupes to make the list:
2,10,3,1,9

??

Thanks,
Scott
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Removing dupes from list

2000-12-09 Thread Dylan Bromby

try some of these:

http://devex.allaire.com/developer/gallery/SearchResults.cfm?keywords=duplic
ate

-Original Message-
From: Scott Mulholland [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 2:17 PM
To: CF-Talk
Subject: Removing dupes from list


If i have a list like:

2,10,3,1,2,9,9,2

what is the easiest way to parse out the dupes to make the list:
2,10,3,1,9

??

Thanks,
Scott
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Removing dupes from list

2000-12-09 Thread pan




> If i have a list like:
>  
> 2,10,3,1,2,9,9,2
>  
> what is the easiest way to parse out the dupes to make the list:
> 2,10,3,1,9
>  

May not be the easiest, but ...




 
  
 

 
OR,

You could use ListValueCountNoCase(), but you'll
end up spending more processing time as you'll have
to reloop every time you find a return > 1 and do a 
ListDeleteAt() for the 2nd+ occurrences.

Or,

You could build a structure and use StructKeyExists(),
. etc.  

In short there area lot of way to code what you
want to do ... "easiest" is up to you, but the first method
I outlined should be reasonably quick and simple - it does
operate in linear time so there might be a faster method.

Pan




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Removing dupes from list

2000-12-09 Thread Hal Helms

Scott, if you go to the Allaire tag gallery and search for "duplicate",
you'll see a couple of custom tags.

Hal Helms
== See www.ColdFusionTraining.com for info on "Best Practices with
ColdFusion & Fusebox" training, Jan 22-25 ==


-Original Message-
From: Scott Mulholland [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 5:17 PM
To: CF-Talk
Subject: Removing dupes from list


If i have a list like:

2,10,3,1,2,9,9,2

what is the easiest way to parse out the dupes to make the list:
2,10,3,1,9

??

Thanks,
Scott
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists