Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
STRTRAN not matter the case sensitive
Message
From
25/09/1997 16:21:51
 
 
To
25/09/1997 16:20:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00051652
Message ID:
00051661
Views:
39
>>>You could call strtran twice:
>>>REPLACE mymemo WITH STRTRAN(mymemo,'my text','new text')
>>>REPLACE mymemo WITH STRTRAN(mymemo,UPPER('my text'),'new text')
>>>but for case of mixed case you should write custom function/procedure/method.
>>
>>Yes, this is excatly where the problem is. I've found that in some cases, the replace value is mixed.
>
>Michel, I got an idea! Use ATC() function (which is not case-sensitive) in loop.

Excellent idea. Thanks.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform