cool. ta. Ian W
----- Original Message ----- From: "Stephen Moretti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 03, 2003 2:12 PM Subject: Re: [ cf-dev ] stringcontains function? > Ian, > > > <cfoutput query="artforms">#artform# > > <input type="checkbox" name="artform" value="#id#" <cfif > stringcontains(myartforms, id)> > > CHECKED><cfelse>></cfif>> <br> > > </cfoutput> > > > > You need to use ListFind(). > > If you use Find() or StringContains() then you will possibly get false > positives... eg. > > You have a list (115, 11, 15, 32) If you do a Find or StringContains on > this for "11" you will actually get a match for 115 and not get a true match > between your search string and the element "11" in the list. The same would > be true for "15". > > Regards > > Stephen > > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
