<cfset myList = "1,2,,,,3,,4,,5,,,,6,7,8,,9,,,,10" /> <cfset myList = rereplace(myList, ',+', ',', 'all')>
<cfoutput>#myList#</cfoutput> ? > > -----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 > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224127 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

