Hey, thanks again Barney.  That was the simplest way to get around my 
problem.

Barney Boisvert wrote:
> Because CF ignores 'null' list items.  So sequential commas are
> treated as a single comma.  Easiest solution is to do this:
> 
> <cfset list = replace(list, ",", " ,", "all") & " " />
> 
> which will add a space to the end of each list element, including the
> 'null' ones, thereby making CF recognize them.  Just make sure to
> strip the trailing space after you get the elements out of the list.
> 
> cheers,
> barneyb
> 
> On 11/14/05, Ray Champagne <[EMAIL PROTECTED]> wrote:
> 
>>can anyone tell me why this list:
>>
>>2,1,250,This transaction has been
>>declined,,P,0,,,101.00,,auth_capture,,,,,,,,,,,,,,,,,,,,,,,,,,69804B3D450BEF23DEFA3646C7BBB430
>>
>>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
>>
> 
> 
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
> 
> Got Gmail? I have 100 invites.
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224128
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to