You can't treat a word as a list of letters, because there's no delimiter. 
Use something like:

<cfset s = "apple">
<cfset t = "">
<cfloop index="i" from="1" to="#len(s)#">
 <cfset t &= mid(s, i, 1) & ".">
</cfloop>
<cfoutput>#t#</cfoutput>


----- Original Message ----- 
From: "Che Vilnonis" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Thursday, May 15, 2008 2:04 PM
Subject: Simple List Question


> Probably been covered before...
> How do I take a word like, "apple" and loop through each letter? I'd 
> like to
> end up with "a.p.p.l.e". 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305366
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to