Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strtran preserving case
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01419229
Message ID:
01419237
Views:
69
Hi Chuck,

What are the exact rules. What would happen if you replace TheOLDword with OneOrMoreNewWords? Do you replace the middle part of a string where the left and right parts remain unchanged? Than STREXTRACT() combined with STRTRAN() would help. Of course you would need to figure out what to do when the replaced word has mixed case and the new one a different number of characters...

For simple case, where the word is either all lower, proper or upper, you can pass 3 as the last parameter in STRTRAN().
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform