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:
01419528
Views:
48
>Hi Chuck,
>
>in this case it might be easier to loop through the string, get the position with ATC(), extract the three letters, look it up in a cursor or array that contains all 8 combination of upper and lower case variations and then put the new word in with STUFF().

I used ATC to find the string and substr out the section I wanted and used CHRTRAN(lc_string, 'OLDold',NEWnew')
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Reply
Map
View

Click here to load this message in the networking platform