Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Case insensitve Strtran
Message
De
21/12/2000 05:32:29
 
 
À
21/12/2000 02:28:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00455364
Message ID:
00455801
Vues:
33
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform