>Hi. Looking for a function (like chartran) that will eliminate a specified word from a field value without affecting same characters in other words therein.
>Is there a strtran()?
>
>Randy
Like Sylvain said, but you need to use spaces as well:
lcString = [help helpful whelp]
where you want to remove the exact word "help":
? alltrim(STRTRAN([ ] + lcString + [ ], [ help ], [ ]))
Something more reliable would be the use of GETWORDCOUNT and GETWORDNUM in a loop to parse through and rebuild the string
Mark McCasland
Midlothian, TX USA