Restricted operation cannot cross logical boundaries

hello,if i run this codefragment:

.

.

Dim rtnav As NotesRichTextNavigator

Dim rtrange As NotesRichTextRange

If rtnav.FindFirstString(texttodelete, RT_FIND_CASEINSENSITIVE) Then

Call rtrange.SetBegin(rtnav)

Call rtrange.SetEnd(rtnav)

Call rtrange.Remove()	

End If

.

.

i get the folowing errormessage, while the “rtrange.remove()”-Statement:

“Restricted operation cannot cross logical boundaries”

what’s wrong?

Subject: RE: Restricted operation cannot cross logical boundaries

I’m not sure, but I don’t understand how you expect this to work. The beginning and end points of your range are the same; what do you expect Remove to remove?

Subject: RE: Restricted operation cannot cross logical boundaries

this was the right question :slight_smile: thanks