Ah, no. Let's ignore the d:\ for a minute. Are you saying your session
variable is ALSO a list? In other words, you want to see if a list is in
a list? That is not as easy as a simple list check, although not
impossible either. What exactly is your logic?
Is it:
I want to see if any values in session.foo, a list, exists in
another list.
========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
Email : [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Bushy [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 16, 2003 8:17 AM
> To: CF-Talk
> Subject: RE: Syntax not correct?
>
>
> No difference.
>
> Actually the SESSION variable would contain...
>
> "D:\mywork,D:\documents,D:\programs,D:\utilities" but I
> thought I could just search for the directory name and omit
> the "D:\" etc.
>
>
>
> On Wed, 16 Jul 2003 10:07:04 -0400, Bryan F. Hogan wrote:
>
> > Does your Session.DisplayShowMe var have leading or trailing spaces?
> >
> > Try using: listFindNoCase(urls,SESSION.DisplayShowMe) as
> > listFindNoCase(urls,Trim(SESSION.DisplayShowMe))
> >
> > -----Original Message-----
> > From: Randell B Adkins [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 16, 2003 10:03 AM
> > To: CF-Talk
> > Subject: Re: Syntax not correct?
> >
> >
> > Did you try ListContains
> >
> >
> >
> > >>> [EMAIL PROTECTED] 07/16/03 09:58AM >>>
> > Hi,
> >
> > Whats wrong with the syntax below. It doesn't seem to work.
> >
> > The below SESSIOn varaible is equal to 'mywork'
> >
> > I want to check the SESSION variable for 'mywork' and if it
> exists do
> > this...other do else.
> >
> > The SESSION could contains multiple checks. For example the <cfset
> > could contain:
> >
> > <cfset urls = "mywork,documents,programs,utilities">...etc.
> >
> >
> > #SESSION.DisplayShowMe#<br>
> >
> > <cfset urls = "mywork">
> >
> > <cfif listFindNoCase(urls,SESSION.DisplayShowMe)>
> > Match Found!
> > <cfelse>
> > No Match!
> > </cfif>
> >
> >
> >
> >
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
http://www.cfhosting.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4