Yep, I get it now. :) For some reason, my posts are taking very long to be
processed and you didn't see my earlier reply. 

-----Original Message-----
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 08, 2008 3:15 PM
To: CF-Talk
Subject: Re: Array "Find" and java APIs

On Jan 8, 2008 11:23 AM, Che Vilnonis <[EMAIL PROTECTED]> wrote:
> Charlie/Barney, I've simplified things a bit and changed the code to 
> read "indexOf". 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. Any ideas what might be wrong?

why do you say you should be able to find a substring value using indexOf()?

if you change Rupesh's code to this:

<cfset pos = y.indexOf('damo') + 1 />

it doesn't work.  you're saying that the substring 'damo' should be found
int he array element 'damon'.  i'm not seeing that behavior in testing.

--
"Scientists tell us that the fastest animal on earth, with a top speed of
120 feet per second, is a cow that has been dropped out of a helicopter." -
Dave Barry



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:296188
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