This look like it works but was is the code exactly? I cant seem to get everything in the correct place <CFSET fullname = "Dick Van George Jettson">; // It didn't like D y k e.. sigh.. <CFSET thisLen = listLen(fullname," ") > ; // 4 <cfif (thisLen eq 2)>{ concat = left(ListGetAt(fullname,1," ",true),1) & left(ListGetAt(fullname,2," ",true),5); } <cfelse> { concat = left(ListGetAt(fullname,1," ",true),1); lastname = ""; for(i = 2; i lte thisLen; i=(i+1)){ lastname &= ListGetAt(fullname,i," ",true); } concat &= left(lastname,5); } </cfif>
... View more