Use the ListFind() function as in:
<CFSET theList = "7,67,6,16,26,20,31,1,2">
<CFIF ListFind(theList, 6) NEQ 0>
Found
<CFELSE>
Not Found
</CFIF>
--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/
-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 09, 2004 3:39 PM
To: CF-Talk
Subject: easy question
hi there.
if I want to rule out the existence of a particular "WHOLE" number in a
comma sep. string what would be the best way?
lets say, that I have a string
7,67,6,16,26,20,31,1,2
and I want to say, yes, this has a "6" in it.
7,67,16,26,20,31,1,2
or definitively that this one doesn't. what would be the best way?
...tony
tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

