Was assuming str = one word - and we all know about assumptions. If str
can be multiple words, you could simply loop over the string looking for
[[:space:]], or punctuation. Or go to www.cflib.org ;)

========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Sean A Corfield [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 27, 2003 12:10 PM
> To: CF-Talk
> Subject: Re: Leave first letter uppercase . . .
> 
> 
> On Tuesday, May 27, 2003, at 11:01 US/Pacific, Raymond Camden wrote:
> > There are a few titlecase style UDFs at cflib.org, but the simplest 
> > solution is..
> >
> > str = ucase(left(str,1)) & lcase(right,len(str)-1);
> 
> Won't work for NEW YORK (it would produce New york instead of 
> New York).
> 
> So, cflib.org it is...
> 
> Sean A Corfield -- http://www.corfield.org/blog/
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to