If you're just wanting the results of one column in an array, there's a simpler way of doing that:
<cfquery name="pushintoarray" /> <cfset imageinformation = ListToArray(ValueList(pushintoarray.OBJECTID))> -----Original Message----- From: Stivn .. [mailto:[EMAIL PROTECTED] Sent: Thursday, September 27, 2007 3:39 AM To: CF-Talk Subject: Push values into an array -> Search on array Hi all, i have questions to array functions. Step 1: I have pushed some sql-values into an array: <cfloop query="pushintoarray"> <cfset updateimage = #updateimage#+1> <cfset imageinformation[#updateimage#] = #pushintoarray.OBJECTID#> </cfloop> Now i want to compare the values of the array with an existing variable (f.e. "priority"). Question: How can i discover the array-number which have the value of the variable "priority"? Thank you in advance for your help. Stivn. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289617 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

