>Take a look at the both versions of code below. The version of >Rupesh's code works, yet my version does not. Since his code does work, I >*should* be able to find the value substring in an array of strings using >this method.
No you shouldn't. The indexOf method does not work the way you're thinking. It does not find substrings. It finds whole strings only. His example is searches for "damon". The entire string "damon" *is* one of the elements in the array. That's why his example works. Try changing it to a substring like "da" and it won't work because the array does not contain an element with the exact value "da". ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296178 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

