<cfset newList = ''>
<cfoutput>
<CFLOOP INDEX=i LIST="#mList#">
<CFIF LISTCONTAINS(newList,TRIM(i)) EQ FALSE>
<CFSET newList = ListAppend(newList,i)>
</CFIF>
</CFLOOP>
</cfoutput>
>>> [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