Correct me if I'm wrong here people, but I believe that if the list contains actual 
numbers (like from a numeric data field) then this list function will work correctly, 
but if it's a text string it won't.

It's been a while since I checked on this.



--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net 
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------


> -----Original Message-----
> From: Gilles Ratte [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 07, 2000 7:52 AM
> To: 'cftalk'
> Subject: contained in a list
> 
> 
> I need know if a number is one of a list item.
> 
> let me explain
> 
> let's say.. mynumber = 2 ans mylist = 2,67,34,52
> 
> 
> I thought this would do ..
> <cfif #listcontains(mylist, mynumber)# is 0>
> ...
> <cfelse>
> ...
> </cfif>
> 
> but it does not act like I want ... It compare the same whay as of strings
> and will find 2 and 52
> 
> What I want to do is to get the exact item in the list
> 
> 
> Someone has an idea on how to do it?
> 
> Thanks
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to