Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treating lines in a variable
Message
De
27/09/2012 09:39:55
 
 
À
27/09/2012 09:38:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01553736
Message ID:
01553744
Vues:
66
>>>Hi
>>>
>>>I stored a text into a variable and need to treat it in order to turn capital the first letter of every line.
>>>
>>>eg:
>>>
>>>acccccacacacacaccacca
>>>
>>>dddjjdjjdjjdjjdjjd
>>>
>>>xxxxx ddddddd aaaaaaa
>>>
>>>annannannannanan
>>>
>>>
>>>Must become:
>>>
>>>Acccccacacacacaccacca
>>>
>>>Dddjjdjjdjjdjjdjjd
>>>
>>>Xxxxx ddddddd aaaaaaa
>>>
>>>Annannannannanan
>>
>>Try this:
>>
>>
>>aVariable = 'acccccacacacacaccacca'
>>
>>aVariable = upper(left(aVariable,1))+substr(aVariable,2)
>>
>
>PROPER()

No
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform