Try the following code:


<cfset ListOne = "2,10,3,1,2,9,9,2">
<cfset ListTwo = "">

<cfloop index="i" list="#ListOne#" delimiters=",">
        <cfif NOT ListFind(ListTwo, i)>
                <cfset ListTwo = "#ListTwo#" & "#i#" & ",">
        </cfif>
</cfloop>

<cfset ListTwo = RemoveChars(ListTwo, Len(ListTwo), 1)>

<cfoutput>
        #ListTwo#
</cfoutput>



==========================================================

-----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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists