[cfaussie] Re: FineNoCase Problem
Scott, Well that is a doosy, but maybe you should be looking at contains and not FindNoCase. Because x = opva will always return true as will x=op I suggest using cfif StringToCompareAgainst contains 'OPPO,OPSNC,OPVAN,OPGEN,INP' Of you could do something like this cfswitch expression=#x# cfcase value=OPVAN /cfcase cfcase value=OPPO,OPP /cfcase /cfswitch Notice I threw an extra OPP to show multiple checks, to run same code! Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: FineNoCase Problem
ListFindNoCase('OPPO,OPSNC,OPVAN,OPGEN,INP', x) gt 0 Cheers, Adam -Original Message- From: Scott Thornton [mailto:[EMAIL PROTECTED] Sent: Friday, 2 March 2007 2:48 PM To: cfaussie@googlegroups.com Subject: [cfaussie] FineNoCase Problem Hi, I have been using FindNoCase(x,'OPPO,OPSNC,OPVAN,OPGEN,INP') gt 0 for a while but only noticed today that if the value of x is OPVA it would match on the value OPVAN. Not what I was expecting. I have changed the statement to use multiple comparison eg x=oppo or x=opsnc and so on, but was wondering if there was a solution using a function like that above? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---