If you're creating the list from a query, you should be able to select
distinct values.
If you can't do that, loop through your list, appending a new one.
<CFSET newList="">
<cfloop index="item" list="mylist">
<CFIF NOT ListFindNoCase(newList,item)>
<CFSET newList = listAppend(newList,item)>
</CFIF>
</cfloop>
(or something along those lines!)
-----Original Message-----
From: Kevin Plexico [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 05, 2000 2:14 PM
To: CF-Talk
Subject: Removing Duplicates from a List
Is there a function or quick way of removing duplicates from a list? Didn't
see any in the Language Reference.
Thanks
Kevin
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.