As CF arrays are java lists:

<cfset myindex = imageinformation.indexOf(priority)>

This is of course an undocumented feature that could break in the
future - use at your own risk. It's also case-sensitive.

On 9/27/07, Stivn .. <[EMAIL PROTECTED]> wrote:
> 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.


-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

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

Reply via email to