Dov is right, empty list elements are ignored.  There is a udf on
cflib.org that will turn a list into an array, with elements for empty
list items.

http://cflib.org/udf.cfm?ID=1022

You could pretty easily write something yourself as well.

On 11/14/05, Katz, Dov B (IT) <[EMAIL PROTECTED]> wrote:
> Looks like consecutive delimiters are ignored...
>
> http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functb15.htm#wp11
> 07782
>
> I wish they had the same option as java.util.StringTokenizer which can
> choose to ignore or count empty tokens....
>
> -dov
>
> -----Original Message-----
> From: Ray Champagne [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 14, 2005 2:38 PM
> To: CF-Talk
> Subject: list question
>
> can anyone tell me why this list:
>
> 2,1,250,This transaction has been
> declined,,P,0,,,101.00,,auth_capture,,,,,,,,,,,,,,,,,,,,,,,,,,69804B3D45
> 0BEF23DEFA3646C7BBB430
>
> is seen as a 9-item list in CF?
>
> I'm trying to loop over the list (which is dynamic, this is just one
> example), and output the list position and the value of the list item in
> that position.  Like this:
>
> Response Position 1: 2
> Response Position 2: 1
> ...
> ...
> ...
>
> Ray
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224124
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to