replace() always returns 0. And are you sure that it will replace only the first occurance? Perhaps you could do this:
Code:
while(containi(stringval,"value") != -1) {
stringval = replace(stringval,"value","otherstuff");
}
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS