This should be easy but somehow I don't get it,
in this example only the first occurrence of test should
be replaced with pot but it isn't
If I nstart = 0 then it goes well,
but I can't do it because if I only want the last
word to be replaced it won't.
so can somebody explain me way or how to ?
thanks in advance
regards
christophe
origfield = "dit is een test en dit is ook een test"
nstart = 12
curword = "test"
newword = "pot"
? STRTRAN(origfield,curword,newword,nstart)