Board index » delphi » LowerCase with first letter UpperCase?

LowerCase with first letter UpperCase?

Hello,
I've been searching the Help for functions on this, but it seems that either
AnsiLowerCase nor the AnsiLowerCaseFileName functions leaves the first
letter uppercase.
In some occations this would be useful.

Can someone lead me into the right direction?

Thanks.

--
Kind regards
Kai Inge

{If you think you are faultless,
you have already committed your first fault.}

 

Re:LowerCase with first letter UpperCase?


var str, format_str : string;
...
format_str := Uppercase(Copy(str,1,1))+Lowercase(Copy(str,2,Length(str)));
...
Kai Inge Buseth <kibus...@online.no> wrote in message
news:NIFF3.1261$1s6.17014@news1.online.no...
Quote
> Hello,
> I've been searching the Help for functions on this, but it seems that
either
> AnsiLowerCase nor the AnsiLowerCaseFileName functions leaves the first
> letter uppercase.
> In some occations this would be useful.

> Can someone lead me into the right direction?

> Thanks.

> --
> Kind regards
> Kai Inge

> {If you think you are faultless,
> you have already committed your first fault.}

Re:LowerCase with first letter UpperCase?


Thank you.
That will suit my needs.

--
Kind regards
Kai Inge

{If you think you are faultless,
you have already committed your first fault.}

Quote
Ann VAN EYKEN wrote in message <37e73...@news.uia.ac.be>...
>var str, format_str : string;
>...
>format_str := Uppercase(Copy(str,1,1))+Lowercase(Copy(str,2,Length(str)));
>...
>Kai Inge Buseth <kibus...@online.no> wrote in message
>news:NIFF3.1261$1s6.17014@news1.online.no...
>> Hello,
>> I've been searching the Help for functions on this, but it seems that
>either
>> AnsiLowerCase nor the AnsiLowerCaseFileName functions leaves the first
>> letter uppercase.
>> In some occations this would be useful.

>> Can someone lead me into the right direction?

>> Thanks.

>> --
>> Kind regards
>> Kai Inge

>> {If you think you are faultless,
>> you have already committed your first fault.}

Other Threads