[thelist] LCase, UCase, Sentence Case? <cf>

Chris Evans chris at fuseware.com
Thu Feb 22 17:40:29 CST 2001


There isn't a function per say, but here is a little snippet:

<CFSET MyString="HELLO WORLD">
<CFSET TempString = "">
<cfloop index="word" list="#MyString#" delimiters=" ">
	<CFSET TempString=TempString & UCase(Left(word,1)) &
LCase(Mid(word,2,Len(Word) -1)>
</CFLOOP>
<CFSET MyString = Tempstring>

Hope that helps,
Chris Evans
chris at fuseware.com
http://www.fuseware.com

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Joe Crawford
Sent: Thursday, February 22, 2001 5:06 PM
To: evolt.org's "thelist"
Subject: [thelist] LCase, UCase, Sentence Case? <cf>


Is there a quick and dirty Sentence case function in CF

#LCase(foo)# turns:
	HELLO WORLD
into
	hello world
and #LCase(foo)#
would turn it back.

Is there a simple Sentence case function which would turn it to:
	Hello World

I'm looking but see nothing obvious.

Thanks!
	Joe
--
Joe Crawford ||||||||||||||       mailto:jcrawford at avencom.com
||||||||||||||||||||||||             http://www.avencom.com
|||||||||||||||||||||||||||      Avencom: Set Your Sites Higher

---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !






More information about the thelist mailing list