Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting UPPER
Message
From
22/06/2006 13:49:40
 
 
To
22/06/2006 13:42:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01130900
Message ID:
01130907
Views:
12
>Proper function change thefirst character in all words, I want only the first word.
>>Use proper()
>>
>>>Hi
>>>How can I replace string with capital letters to lower but the leftmost character will be upper?
>>>Thanks
Hi Chaim
lcname  = "Chaim Halevy Works At Dor Yeshorim"
lnendp  = at(" ",lcname)
lcfirst = substr(lcname, 1, lnendp)
lcname  = proper(lcfirst) + lower(stuff(lcname,1,lnendp,""))
HTH

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Reply
Map
View

Click here to load this message in the networking platform