Doh! Should have thought of that!
Works great!
("I get by with a little help from my friends...") :o)
Thanks,
Rick
> -----Original Message-----
> From: Dawson, Michael [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 15, 2008 9:42 AM
> To: CF-Talk
> Subject: RE: How do I limit the "contains" function?
>
> Did you try listFind()?
>
> m!ke
>
> -----Original Message-----
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 14, 2008 4:38 PM
> To: CF-Talk
> Subject: How do I limit the "contains" function?
>
> Hi, all...
>
> How do I limit the "contains" (or in this case "does not contain")
> function so that it won't find a string when it's part of a larger
> string?
>
> Exempli Gratis...
>
> I have a list of 3 city names: Esabel,Esabell,Esabelle
>
> This code:
>
> <cfif #valueList(get_approved_cities.approved_city)# does not contain
> #property_city#>
>
> will return that all three cities are contained in the list because the
> string, "Esabel", is contained in all three city names, etc.
>
> How would I modify the code to return "Esabelle", but not Esabel nor
> Esabell?
>
> Using commas is tricky because the last city name in the list isn't
> followed by a comma.
> (Tried that one...)
>
> Ideas?
>
> Thanks,
>
> Rick
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309076
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4