If you don't have CF5:
<cfset newlist = "">
<cfloop list="#list#" index="item">
<cfif NOT listfind(newlist, item)>
<cfset newlist = listappend(newlist, item)>
</cfif>
</cfloop>
then put it back into the original variable if you like.
> -----Original Message-----
> From: van Wyk, Carlo [mailto:[EMAIL PROTECTED]]
> Sent: 13 September 2001 14:44
> To: CF-Talk
> Subject: Delete Duplicate items in list
>
>
> I have a list that looks like this:
>
> 1,1,2,3,4,4,5
>
> How can I delete any duplicate items that occur in the list?
>
> Regards
> Carlo
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists