Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
101 VFP7 Things, Part 11
Message
De
15/12/2000 11:07:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
101 VFP7 Things, Part 11
Divers
Thread ID:
00453978
Message ID:
00453978
Vues:
79
StrTran() is now Case In-sensitive if you want it to be. For example:
?strtran('AaAa', 'A', 'B', -1, -1, 0)
?strtran('AaAa', 'A', 'B', -1, -1, 1)
returns

BaBa
BBBB


The last parameter is teh Case Sesnsitive, 0 means sensitive and 1 means in (regardless of what IntelliSense tells you). 2 things. You'll notice the -1 in the code, that means just give these parameters default values. And you'll also see that regardless of the case found, it always replaces it with the case you have as teh third variable. Thats why we have "BBBB" instead of "BbBb".
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform