Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treating lines in a variable
Message
From
27/09/2012 09:39:55
 
 
To
27/09/2012 09:38:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01553736
Message ID:
01553744
Views:
67
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform