>Hi Hilmar,
>
>I cant change the delimiter, becouse I must keep it.
I meant that you specify a delimiter other than new-line.
>The whole problem is this.
>Having a string like
>lcStr="word1-word/word3-word2/wor"
>(- and / are delimiters), and having an integer
>lnNum=2
>return the string with second word deleted
>return ("word1-word3-word2/wor")
Since you use two different delimiters ("-" and "/"), it seems to me that you better use the AT() function, as recommended in the other replies you got.
delete_from = at(...)
delete_to = at(...)
new_word = left(oldword,...) + substr(oldword,...)
I leave the dirty work, of filling in the exact parameters, to you.
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)