Great idea. I'll do that.

Thanks

--Original Message Text---
From: Mike Townend
Date: Tue, 13 Jan 2004 14:54:16 -0000

What I tend to do is create a file called UDFLibrary.cfm and then CFINCLUDE
the file in my Application.cfm file, then all the functions are available to
the App.

This way I also know that the functions will be defined once.

HTH

-----Original Message-----
From: Bushy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 14:49
To: CF-Newbie
Subject: RE: listFindNoCase not working properly?

Cool!

I just put this into my .cfm page? Whats the best way to handle or call in a
UDF?

--Original Message Text---
From: Mike Townend
Date: Tue, 13 Jan 2004 14:41:34 -0000

have a look at the udf islistinlist

http://www.cflib.org/udf.cfm/islistinlist

HTH

-----Original Message-----
From: Bushy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 14:37
To: CF-Newbie
Subject: re: listFindNoCase not working properly?

Hi,

I've just come acroos this in my app which I never noticed before.

I'm reading in a comma delimited list from my database and then setting it
in a cookie. I then check the cookie to see if any of the following text
exists and if so, do something...etc.
Whats wrong with my syntax?

COOKIE.check = "contact,support,test,Administrators"

<cfif listFindNoCase(COOKIE.check, "Administrators,support"))>
   Do this
<cfelse>
   Do else
</cfif>

Is the listFindNoCase looking for the "exact" match of the two or just one
of the occurence of either one. Basically I need to check the cookie to see
if any of the above exist in any order.
  _____
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to