The only way that I can thing of is to loop over the string, unless you separate the string by delimiters, to make it a list, then use ListToArray()
<cfset string="54545"> <cfset MyArray = ArrayNew(1)> <cfloop from="1" to="#len(string)#" index="i"> <cfset MyArray[i] = mid(string,i,1)> </cfloop> ______________________ steve oliver atnet solutions, inc. http://www.atnetsolutions.com -----Original Message----- From: Fred jambukeswaran [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 2:41 PM To: CF-Talk Subject: Converting string to array I am trying to convert the value 54545 to an array that looks like MyArray[1] = 5 MyArray[2] = 4 MyArray[3] = 5 MyArray[4] = 4 MyArray[5] = 5... If there a better way then looping over the length of the string and populating the array? Thanks, -Fred ______________________________________________________________________ Why Share? Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

