>>
>>I'd like the analogue of strtran but with case insentitive. Anyway, I've just checked the form code and found, that I always use the same convention: SiteMstr, PropMstr, TranMstr, so this is not a problem.
>
>With strtran() this would work :
>lcString = strtran(upper(lcString), 'SITEMSTR', 'SiteMstr')
VBScript.RegExp is better at these games:
oRegExp = CREATEOBJ('VBSCRIPT.Regexp')
oRegExp.IgnoreCase = .t.
oRegExp.Global = .t.
oRegExp.Pattern = 'sitemstr'
? oRegExp.Replace('SiteMStr SITEMSTR SiTeMStr,Sitemstr SITEMSTR','SiteMstr')