Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Scooby Doobie Doo #1
No Pcase? how do I capitolize the first letter of aword, with the rest of the word lower case?
I know I can go one way or another, Ucase(var) all upppercase, or Lcase(var)
all lowercase, but how can I get a Propercase? I've seen this in VB, does Cold
Fusion have a function like this, or can you tell me how to perform this in
Cold Fusion? I have a user who wants this and doesn't wan't all upper or
lowercase. Has anyone been able, or know how to do this? Thanks in advance. I
can't find anything in the forum or dev exchange about it.
Scooby Doobie Doo Guest
-
OT--Copperplate & Lower Case
Years ago, I stumbled across a Copperplate font that actually had a lower case character set with fine serifs and all. Can't remember where I saw it.... -
Lower case
Hi, On Wed, 2005-01-26 at 12:01 +0000, Vladimir S. Petukhov wrote: lower(), upper() and case insensitive search highly depend on the correct... -
[newbie] upper to lower first letter of a word
Recently, i get a vintage list (more than 500 items) with poor typo, for example, i've : Côte de beaune-villages instead of : Côte de... -
String formatting function - First char Upper, rest lower
Hi, Newbie question. Does anyone know of a function or script that will capitalize the first char and lowercase the remaining chars of each... -
lost lower case type
nancy, no but don't be embarrased to ask. What I get I a Big capital A and then instead of lower case I get small uppercase. I have been all over... -
mpwoodward *TMM* #2
Re: No Pcase? how do I capitolize the first letter of a word, withthe rest of the word lower case?
Scooby Doobie Doo wrote:
[url]http://www.cflib.org[/url]> I know I can go one way or another, Ucase(var) all upppercase, or Lcase(var)
> all lowercase, but how can I get a Propercase? I've seen this in VB, does Cold
> Fusion have a function like this, or can you tell me how to perform this in
> Cold Fusion? I have a user who wants this and doesn't wan't all upper or
> lowercase. Has anyone been able, or know how to do this? Thanks in advance. I
> can't find anything in the forum or dev exchange about it.
>
Lots of string manipulation functions on there.
--
Matt Woodward
[email]mpwoodward@gmail.com[/email]
Team Macromedia - ColdFusion
mpwoodward *TMM* Guest
-
jdeline #3
Re: No Pcase? how do I capitolize the first letter of aword, with the rest of the word lower case?
Use CSS:
<DIV STYLE="text-transform: capitalize">the first letter of each word will be capitalized</DIV>
jdeline Guest
-
Scooby Doobie Doo #4
Re: No Pcase? how do I capitolize the first letter of aword, with the rest of the word lower case?
Dude, that rocks! Not sure how I'll convert my CF Vars with that yet, but I'll fudge about with it, I'll also check out the link provided by mpwoodward *TMM*. Thanks guys/gals/peoples! ;)
Scooby Doobie Doo Guest
-
BKBK #5
Re: No Pcase? how do I capitolize the first letter of aword, with the rest of the word lower case?
Keeping it within Coldfusion, one could do
<cfset yourString = "test STRING">
<cfset result = ReplaceNoCase(LCase(yourString), Left(yourString,"1"),
UCase(Left(yourString,"1")),"one")>
<cfoutput>result: #result#</cfoutput>
BKBK Guest



Reply With Quote

