>Just remember to add 1 to the result.
And remember java will perform a case sensitive search. So indexOf("XYZ") may
return different results than indexOf("xyz").
<cfset myArray = [ "apple", "xyz", "orange", "pear"] >
<cfset index1 = myArray.indexOf("XYZ") + 1>
<cfset index2 = myArray.indexOf("xyz") + 1>
<cfoutput>
index1 = #index1#<br>
index2 = #index2#<br>
</cfoutput>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308009
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4