You should use FindNoCase instead of ListFindNoCase.
-OR-
You could use ListFindNoCase(URLDecode(dir),"data", "\").  This treats the backslash 
as a delimiter.

Either should work fine.

Michael B. Dorr
eLab Web Application Developer
Owen @ Vanderbilt University
[EMAIL PROTECTED]


-----Original Message-----
From: phumes1 [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 20, 2002 12:55 PM
To: CF-Talk
Subject: <cfif... not working properly?

Hi,

In this example the results from my #URLDecode(dir)# is "C:\temp\test\data\123\"

I'm trying to check is the directory "data" exists in the variable and if so, do 
something else.
The syntax below is not working properly. What am I doing wrong?

                        <cfif ListFindNoCase(URLDecode(dir),"\data")>
                                <h5>You are in the data directory</h5>
                        <cfelse>
                                             <h5>You are somewhere else</h5>
                        </cfif>




______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to