Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting UPPER
Message
De
22/06/2006 13:49:40
 
 
À
22/06/2006 13:42:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01130900
Message ID:
01130907
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform