I read "substring" as one of the values of the list.


> -----Original Message-----
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2008 2:41 PM
> To: CF-Talk
> Subject: Re: list and ListContainsNoCase
> 
> from the livedocs:
> 
> ListContains:
> Determines the index of the first list element that contains a specified
> substring.
> 
> ListFind:
> Determines the index of the first list element in which a specified value
> occurs.
> 
> 
> On Wed, Aug 6, 2008 at 11:36 AM, Chad Gray <[EMAIL PROTECTED]> wrote:
> 
> > Thanks everyone!  I did not know this.
> >
> > That should be added to the LiveDocs unless I am not reading them right.
> >
> >
> > > -----Original Message-----
> > > From: morgan l [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, August 06, 2008 2:29 PM
> > > To: CF-Talk
> > > Subject: Re: list and ListContainsNoCase
> > >
> > > ListFind will check for an exact match on list items, ListContains
> checks
> > > if
> > > the string exists at all in any list element (thus, "Black" matches
> > > "Black/White").
> > >
> > > On Wed, Aug 6, 2008 at 1:24 PM, Chad Gray <[EMAIL PROTECTED]> wrote:
> > >
> > > > Why is this happening?  I don't want to display the variable
> ColorName
> > > if
> > > > it has a value of something in my list "dontShowList".
> > > >
> > > > If colorname is "BLACK", "4", "Process" etc it does not show them.
> It
> > > > should show because "BLACK" is not in my list.  BLACK/WHITE is in my
> > > list,
> > > > but not BLACK.
> > > >
> > > > It is like ListContainsNoCase does not now the delimiter for the
> list
> > is
> > > > comma.
> > > >
> > > >
> > > > <cfset colorname = "BLACK">
> > > >
> > > > <cfset dontShowList = "BLACK/WHITE,4 COLOR PROCESS,CC,MM,YY,KK">
> > > >
> > > > <cfif NOT ListContainsNoCase(variables.dontShowList,
> > > variables.ColorName)>
> > > > <cfoutput>#variables.ColorName#</cfoutput>
> > > > </cfif>
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:310304
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to