>Hi All:
> Is there a function that would search the string for multiple occurance of a variable and replace it with null?
>
>I.E. cString="abc,f;fdc"
>replace , and ; with 0. Thus the result will be "abc0f0fdc"
>I want to use function similar to Strtran(), but this search for one occurance of a letter.
>Thaks
>MA
IIRC, it will replace the entire string. But you need to use it twice, once for the ",", once for the ";".
This might be simpler with chrtran(). I don't have VFP handy, but I think it would be something similar to:
chrtran("abc,f;fdc", ",;", "00")
HTH,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)