Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
101 VFP7 Things, Part 11
Message
From
15/12/2000 11:07:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
101 VFP7 Things, Part 11
Miscellaneous
Thread ID:
00453978
Message ID:
00453978
Views:
77
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".
Next
Reply
Map
View

Click here to load this message in the networking platform