works! <cfset preList = replace(binaryValue, 1, '1,', 'all')> <cfset finalList = left(prelist,len(preList) -1)>
this is how I have done it. thanks to Simon on the CFDJ list! ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -----Original Message----- From: DAVE CORDES [mailto:davecordes@;charter.net] Sent: Monday, November 11, 2002 11:39 AM To: CF-Talk Subject: Re: string question Try this out. <CFSET String = "1111111111111111111111111111111111"> <CFSET List = ""> <CFLOOP INDEX="i" FROM="1" TO="#Len(String)-1#" STEP="1"> <CFSET List = ListAppend(List,i)> </CFLOOP> <CFOUTPUT>#List#</CFOUTPUT> Dave On Mon, 11 Nov 2002 11:30:36 -0500 "Tony Weeg" <[EMAIL PROTECTED]> wrote: >hi list. > >If you were going to take a string, lets say > >1111111111111111111111111111111111 > >and turn that to a list, how would you get >commas in there, after each on, except for the last one? > >:) > >struggling on a Monday after a fantastic ravens game on >the 30 yrd line >;) > >..tony > >Tony Weeg >Senior Web Developer >Information System Design >Navtrak, Inc. >Fleet Management Solutions >www.navtrak.net >410.548.2337 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com

