Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treating lines in a variable
Message
De
27/09/2012 09:59:23
 
 
À
27/09/2012 09:50:05
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:
01553750
Vues:
56
>>Something like this (not tested)
>>lcNewString=''
>>#define crlf chr(13)+chr(10)
>>For lnX = 1 to memlines(lcString)
>>   lcNewString =Upper(Left(mline(lcString,lnX),1)) + substr(mline(lcString,lnX),2)  + crlf
>>Endfor
>>lcNewString = left(lcNewString, len(lcNewString-2))
>
>No

???



>>
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform