- Original Message -
From: "Scott, Andrew" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, December 03, 2000 6:43 PM
Subject: RE: ListContains wierdness - why?
> Yes I agree with that, and my response would be that the list element i
sage -
From: "Scott, Andrew" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, December 03, 2000 6:43 PM
Subject: RE: ListContains wierdness - why?
> Yes I agree with that, and my response would be that the list element is
> seperated by t
nt in
this example
regards
Andrew Scott
Senior Cold Fusion Application Developer
-Original Message-
From: BORKMAN Lee [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2000 12:06
To: CF-Talk
Subject: RE: ListContains wierdness - why?
No, this isn't a bug.
According to the documentatio
o what you were thinking.
Lee (Bjork) Borkman
http://bjork.net ColdFusion Tags by Bjork
-Original Message-
From: Scott, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 04, 2000 11:24 AM
To: CF-Talk
Subject: RE: ListContains wierdness - why?
Hmmm, I think you found a bug!
reg
Hmmm, I think you found a bug!
regards
Andrew Scott
Senior Cold Fusion Application Developer
ANZ eCommerce Centre
* Ph 9273 0693
* [EMAIL PROTECTED]
-Original Message-
From: Park, Simon [mailto:[EMAIL PROTECTED]]
Sent: 01 December 2000 06:47
To: CF-Talk
Subject: ListContains wierdnes
ogies
[EMAIL PROTECTED]
http://www.crescotech.com
-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 01, 2000 9:12 AM
To: CF-Talk
Subject: Re: ListContains wierdness - why?
As a general rule, arrays are more efficient than lists.
Lists are implement
ember 01, 2000 9:12 AM
> To: CF-Talk
> Subject: Re: ListContains wierdness - why?
>
>
>
> As a general rule, arrays are more efficient than lists.
> Lists are implemented as strings, so every action on them is
> done as string processing. Arrays are implemented nativ
As a general rule, arrays are more efficient than lists.
Lists are implemented as strings, so every action on them is
done as string processing. Arrays are implemented natively.
Based on that (Without actually looking anything up) the string
'1' is contained in foolist, right between a com
> Why does the following always return TRUE?
>
>
>
> TRUE
>
> FALSE
>
>
You are about to discover the difference between
ListContains and ListFind.
ListContains will return true if substring can be
found within the set of char comprising a value
item in the list.
ListFind will return t
Hi Simon,
>Why does the following always return TRUE?
>
>
ListContains() searches for substrings in the list so it is true, there is
a "1" in the list part of the "10". Use ListFind() instead.
--
Yours,
Kym
~~
Structure your ColdFusion cod
Try ListFind
At 2:47 PM -0500 11/30/00, Park, Simon wrote:
>Why does the following always return TRUE?
>
>
>
>TRUE
>
>FALSE
>
>
>Do I need to put the values into an array?
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at
Simon,
You want ListFind. ListContains returns true because the list contains a
"1" ... it's part of the "10"
i.e. ListFind to find list elements, ListContains to find substrings within
elements.
-Rob
-Original Message-
From: Park, Simon [mailto:[EMAIL PROTECTED]]
Sent: Friday, Decemb
Because there's a "1" in the list, in the value "10". Try ListFind
rather than ListContains.
-David
On Thu, 30 Nov 2000 14:47:29 -0500 "Park, Simon" <[EMAIL PROTECTED]> writes:
> Why does the following always return TRUE?
>
>
>
> TRUE
>
> FALSE
>
>
> Do I need to put the values into an arr
Try using a listfind instead of a listcontains, then re-read the help pages
for both functions carefully.
Jared Clinton.
> -Original Message-
> From: Park, Simon [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 1 December 2000 6:47
> To: CF-Talk
> Subject: ListContains wierdness - why?
>
>
>
14 matches
Mail list logo