I got this response from Tony and it seems to do the trick for me, as do
some of these other response.  Thanks for all your quick help.

Ed McDermott

-----Original Message-----
From: Anthony DeStefano [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 11:31 AM
To: '[EMAIL PROTECTED]'
Subject: RE: String Magic: Extract initial character of words in a
string


<cfset strMyString = "This is a Cold Fusion Article">
<cfset strNew = "">

<cfloop index="x" list="#strMyString#" delimiters=" ">

        <cfset strNew = strNew & ucase(left(x,1))>

</cfloop>

<cfoutput>#strNew#</cfoutput>

-----Original Message-----
From: Edward McDermott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 8:22 AM
To: CF-Talk
Subject: String Magic: Extract initial character of words in a string


I want to be able to take a string, for example a journal article title, and
parse out just the initial characters of each word.  For example: "This is a
Cold Fusion Article" becomes "TIACFA".  Thanks in advance.

Ed

Edward J. McDermott
Systems Librarian
Robert H. Goddard Library
Clark University
950 Main Street
Worcester, MA 01610
(508) 793-7651
(508) 793-8871 [FAX]
[EMAIL PROTECTED]


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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

Reply via email to