>Claudio,
>
>Your code will miss the first occurence if it's located at the very beginning of the control because the character position in RTF control is 0-based. It should be
lnpos = 0
>...
> Do while lnpos >= 0
>...
>
Yeah.. that's right.. tks..
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20