>>>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.