Steve,

Actually it is not doing as you tell it, because

"Item1,item2,item3,item4"


IS and always will be one item, even if I use comma as a delimeter. This is
the way CSV's have worked in .Net and ASP (none .net) 10 years ago. I don't
think the argument that it is behaving normally is right, it is as far as I
am concerned broken :-(



-- 
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613 9015 8628
Mobile: 0404 998 273




-----Original Message-----
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Steve Onnis
Sent: Wednesday, 10 September 2008 4:18 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Quick List question


Its not broken

You define a character as a delimiter and it breaks the list up into items
separated by that character.  CF doesn't know it's a CSV formatted string,
and why would it care? Its doing what you tell it and as far as I know it
has always worked like that. 

-----Original Message-----
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Andrew Scott
Sent: Wednesday, 10 September 2008 4:03 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Quick List question


Nope all list functions.

I have opened the discussion in an area that can't be named, so I will wait
for what responses I get from there. I am curious why it has never been
fixed?

And to confirm it, yes all list functions do not work as expected. So that
means they are all broken.


--
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613 9015 8628
Mobile: 0404 998 273




-----Original Message-----
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Barry Beattie
Sent: Wednesday, 10 September 2008 3:58 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Quick List question


Andrew, I'm curious

is it just the ListGetAt(position) function that's the grief? it might
be "broken" itself

I wonder if all list functions are similarly broken: if you convert
your list to an array with ListToArray(list) first would you get the
correct 4 items or incorrect 6 items?






On Wed, Sep 10, 2008 at 3:45 PM, Brett Payne-Rhodes <[EMAIL PROTECTED]>
wrote:
>
> I don't think list processing is clever enough to say "Ignore delimiters
that are inside double quotes" so it treats the comma inside your 'third'
element as a valid delimiter.
>
> You might have to run a clever bit of regex to replace said commas before
the list processing and once you have the element then simply restore the
commas.
>
> Someone cleverer than me will need to provide the regex though... :)
>
>
> B)
>
>
> Andrew Scott wrote:
>> Scott,
>>
>> Cheers but I don't see how that helps, I am aware of how empty lists are
>> handled. The problem lies in this example
>>
>> List Item #1, List Item #2, "inner List Item #1, inner List Item #2",
List
>> Item #4
>>
>> This is for all intent and purposes only 4 items. Yet ColdFusion sees
this
>> as 6!!
>>
>> I know that this has popped up many times, and when you need it do you
think
>> google is helping?
>>
>> So ListGetAt(myList,4)
>>
>> Returns
>>
>> Inner List Item #2 when it clearly should be List Item #4
>>
>>
>>
>
> --
> Brett Payne-Rhodes
> Eaglehawk Computing
> t: +61 (0)8 9371-0471
> m: +61 (0)414 371 047
> e: [EMAIL PROTECTED]
> w: http://www.yoursite.net.au
>
>
> >
>









--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to