Is the name all one variable. This should do it.
<CFSET Name = "Cool Breeze">

<Cfparam name="initials" default="">
<CFLOOP LIST = "#Name#" delimiters=" " INDEX="tmp">
        <CFSET Initials = ListAppend(Initials, Left(tmp, 1), "")>
</CFLOOP>

<CFOUTPUT>#Initials#</CFOUTPUT>

If the first and last names are in seperate fields do this
<cfset Initials = "#left(firstname,1)##left(lastname,1)#">

You can even use the UCase function to capitalize.

Byron
-----Original Message-----
From: Craig M. Rosenblum [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 13, 2000 3:57 PM
To: [EMAIL PROTECTED]
Subject: intials or abbreviations


is there any function to take a name and just grab the initials?

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to