I concede that Compare() and CompareNoCase() work as would any number of 
workarounds.  It is just very odd that the strings starting 1,2 behave 
differently.  Bug?  not a serious one I admit.

On Tuesday 04 February 2003 01:56 pm, you wrote:
> I don't have the answer you are looking for, but I know the following
> returns the right result.
>
> <CFIF compareNoCase("1,2", "1,2,3") NEQ 0>
> Test passed (NOT same string)
> <CFELSE>
> Test failed (String the same)
> </CFIF>
>

> > <HTML>
> > <BODY>
> > <CFIF "1,2" IS "1,2,3">
> > Test passed
> > <CFELSE>
> > Test failed
> > </CFIF>
> >
> > <CFIF "1,2,3" IS "1,2">
> > Test passed
> > <CFELSE>
> > Test failed
> > </CFIF>
> >
> > <CFIF "0,1" IS "0,1,2">
> > Test passed
> > <CFELSE>
> > Test failed
> > </CFIF>
> >
> > <CFIF "2,3" IS "2,3,4">
> > Test passed
> > <CFELSE>
> > Test failed
> > </CFIF>
> >
> > <CFIF "x,y" IS "x,y,z">
> > Test passed
> > <CFELSE>
> > Test failed
> > </CFIF>
> > </BODY>
> > </HTML>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to