<cfset mystruct = structNew()> <cfloop list="#somelist#" index="i"> <cfset mystruct[i] = ""> </cfloop> <cfset newlist = structKeyList(mystruct)>
If you want an array, use structKeyArray() in the last step
Spike
Knott, Brian wrote:
If I have a list or array, what's the best way to get the unique values out of it. ie is a list contain 1,2,1,3 I just want the unique values 1,2,3
Brian Knott QANTM Studio Senior Database Developer Ph (07) 30174331 Mob 0407572127
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
-- Stephen Milligan Consultant for hire http://www.spike.org.uk "A user interface is well-designed when the program behaves exactly how the user thought it would." Joel Spolsky
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
