Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace string with another string
Message
From
21/12/2004 06:44:58
 
 
To
21/12/2004 05:34:45
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00970903
Message ID:
00970921
Views:
15
>Dear Sir,
>
>I have a string as
>
>Global Traders (pvt) Ltd.
>
>I want to replace it with
>
>Global Traders (Pvt) Ltd. && word Pvt must in proper case
>
>When I apply proper(), it does not work due to brackets.
>
>
>Please help

I understand that this ago cry,
but write a true solution it require very more code:
ss="Global Traders (pvt) Ltd."
* you can use 9,10,11,12,13,32,160 to translate a prefix char to a proper prefix char
* if char(11) it is out of data domain 
? CHRTRAN(PROPER(CHRTRAN(m.ss,'(',CHR(11))),CHR(11),'(')
Previous
Reply
Map
View

Click here to load this message in the networking platform