Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Case insensitve Strtran
Message
From
21/12/2000 05:32:29
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00455364
Message ID:
00455801
Views:
32
Hi Ed,

This is the solution I came up with - I think this one works a bit better because if the string you are searching for is contained in the replacement string things will get confusing 8-)
eg lcVar = StrtrannoCase(lcVar, 'Proc', 'Procedure')


lParameters tcStr, tcFind, tcRep
Local lnPos

lnPos = ATC(tcFind, tcStr)
Do While lnPos > 0
tcStr = STUFF( tcStr, lnPos, LEN(tcFind), '*!*SomeUniqueString*!*')
lnPos = ATC(tcFind, tcStr)
EndDo

Return Strtran(tcStr, '*!*SomeUniqueString*!*', tcRep)
Will Jones
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform