Thanks Dave and Matt for your replies. The "FindNoCase" was the way to go.... DOH!! And I call myself a CF'er.... ;)
It didn't do the trick right off, but lead me down the path of really looking over the strings that I was comparing. Turns out one of the string was using an "–" for the character " - ", but other other string was not. Thus no match. After that the FindNoCase worked perfectly. Thanks, BN ----------------------------------------------- > Date: Mon, 22 May 2006 10:49:14 -0500 > From: [EMAIL PROTECTED] > To: [email protected] > Subject: Re: [CFCDev] OT - Contains issues > > Brent, try: > FindNoCase(CurrentCompareVal,CurrentCompareAllOptions) > ~d > On 5/22/06, Brent Nicholas < [EMAIL PROTECTED]> wrote: > Hi all, sorry for the OT. I already tried the HouseOfFusion forums with no > luck. So I'm wondering if anyone here has dealt with this before of can see > something I'm not seeing. > ------------------------------------------------- > Howdy all - > So I've been given the lovely task of parsing out an email of values from a > submitted form. Those in the know are already growning... ;) > Well in short it all boils down to this right now. "How do you do a > "contains" with commas in the values?" > original form feilds: > <input name="mover" value=" Hydrogen Storage" type="checkbox"> > <input name="mover" value="Gas Transport" type="checkbox"> > <input name="mover" value="Power / HVAC , Settle, Gas" type="checkbox"> > <input name="mover" value="Line / Pipe" type="checkbox"> > <input name="mover" value="Some Option not selected 1" type="checkbox"> > <input name="mover" value="Some Option not selected 2" type="checkbox"> > Comming in the the template I have: > mover = Hydrogen Storage, Gas Transport, Power / HVAC , Settle, Gas, Line / > Pipe > I am doing the following: > CurrentCompareAllOptions = mover > CurrentCompareVar = Power / HVAC , Settle, Gas <----- this came out of a > struct I have of each value with a key > The value for "CurrentCompareAllOptions" is all of the check boxes that were > checked and emailed, thus I have no control over the value names otherwise > you wouldn't be reading this and commas would not be in it except to separate > values. > The "CurrentCompareVar" came out of a struct of all the values I manually > populated from all the checkbox values on the form. > I then perform: > <cfif CurrentCompareAllOptions contains CurrentCompareVar> > They checked this option. > </cfif> > It does not work. No, error. Just no match. > It does work for every other "CurrentCompareVar " except if there are commas > in the value. > For example if "CurrentCompareVar" = "Hydrogen Storage" I get a match. > or if "CurrentCompareVar" = "Line / Pipe" I get a match. > Let me know if more info is needed. > Thanks to all who can help. > BN > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email to > [email protected] with the words 'unsubscribe cfcdev' as the subject of the > email. > CFCDev is run by CFCZone ( www.cfczone.org) and supported by CFXHosting > (www.cfxhosting.com). > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] > -- > ~Dave Shuck > [EMAIL PROTECTED] > www.daveshuck.com > www.worldwildweb.biz > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email to > [email protected] with the words 'unsubscribe cfcdev' as the subject of the > email. > CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting > (www.cfxhosting.com). > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
