Assuming each character is a list element?

<cfset stringToConvert="1111111111111111111111111111111111">
<cfset convertedList="">
<cfloop from="1" to="#Len(stringToConvert)#" index="ndx">
        <cfset
convertedList=ListAppend(convertedList,Mid(stringToConvert,ndx,1))>
</cfloop>

> -----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
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to