Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting UPPER
Message
From
22/06/2006 14:09:27
 
 
To
22/06/2006 13:34:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01130900
Message ID:
01130910
Views:
17
>Hi
>How can I replace string with capital letters to lower but the leftmost character will be upper?
>Thanks

Can you have multiple words in the string? If so, do you want each word to start as upper case?

For Example JOHN DOE becomes John Doe.

In that case, use Robert's suggestion of PROPER().

To get exactly what you asked for (1st letter upper case, all others lower case).........try
UPPER(LEFT(myVar,1)) + LOWER(SUBSTR(myVar,2))
Previous
Reply
Map
View

Click here to load this message in the networking platform