<cfscript>
        ones = "1111111111111111111111111111111111";
        onesList = Replace(ones, "1", "1," , "all");
        onesList = Left(onesList, Len(onesList) - 1);
</cfscript>

or

<cfscript>
        ones = "1111111111111111111111111111111111";
        onesList = "1";
        for(itr = 2; itr lt len(ones); itr = itr + 1)
                onesList = onesList & ",1";
</cfscript>

Matt Liotta
President & CEO
Montara Software, Inc.
http://www.montarasoftware.com/
888-408-0900 x901

> -----Original Message-----
> From: Tony Weeg [mailto:tony@;navtrak.net]
> Sent: Monday, November 11, 2002 11:31 AM
> To: CF-Talk
> Subject: string question
> 
> 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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to