I just tried some similar code as well when I saw that it skips white space in the string.
-----Original Message----- From: Craig [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 16:21 To: CF-Talk Subject: Re: Looping through text string something like: <cfset mystring = "I am a string"> <cfset stringlength = len(mystring)> <cfloop from="1" to="#stringlength#" index="i"> <cfset currentletter = mid(mystring, i, 1)> <cfoutput>#currentletter# </cfoutput> </cfloop> ----- Original Message ----- From: "raphael" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, November 19, 2001 2:56 PM Subject: Looping through text string > Anyone know how to loop through a text string to get the letter? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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

