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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:224126 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

