On Nov 20, 2007 3:02 AM, Jide Aliu <[EMAIL PROTECTED]> wrote:
> Does anyone know the list below returns 0? The function recognises the first 
> value but ignores the second value in the list

As others have said, you have a space in your list which is considered
part of the list.

Two possibilities:

<cfset listNames = replace("20071010_376, 20071016_392"," ","","all") />
<cfoutput>#listFindNoCase(listNames, "20071016_392")#</cfoutput>

or:

<cfset listNames = "20071010_376, 20071016_392" />
<cfoutput>#listFindNoCase(listNames, "20071016_392",", ")#</cfoutput>

The former removes the spaces before searching. The latter treats
space as a delimiter as well as comma.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

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