Find something in a text selection
Dear Friends and experts,
Has anyone of you ever tried to find something programmatically in a text selection (aka text range)? The Find method works from a starting point (Text Location) towards the end of a document. When I select a part of the document and issue the search, it obviously starts just after the selection...
oTR = oDoc.TextSelection;
oFindParms = GetFindParameters (..);
oTR1 = oDoc.Find(oTR.beg, oFindParms);
Even if the searched item is within the selection, the resulting oTR1 is behind the selction.
I have no idea how to do a search within the selection.

