http://www.bennadel.com/blog/432-Using-ColdFusion-Structures-To-Remove-Duplicate-List-Values.htm

    * <!--- Create a structure to hold the movie titles. --->
    * <cfset objMovies = StructNew() />
    *  
    * <!--- Loop over the list to add mappings to the struct. --->
    * <cfloop index="strMovie" list="#lstMovies#" delimiters=",">
    *  
    * <!---
    * Store key/value pair. In this case, we don't
    * really care about the value (hence storing ""
    * as value). We only care about the key.
    * --->
    * <cfset objMovies[ strMovie ] = "" />
    *  
    * </cfloop>
    *  
    * <!--- Convert the now unique key values into a list. --->
    * <cfset lstMovies = StructKeyList( objMovies ) /> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304848
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to