A problem with RVE.SearchText

General TRichView support forum. Please post your questions here
Post Reply
IGDark
Posts: 41
Joined: Wed Jan 18, 2006 11:03 am

A problem with RVE.SearchText

Post by IGDark »

Hello,

I have a question - is there any way to search a text in TRichViewEdit from one position to another using SearchText. For example I need to find a specific text from one position in the component to another (to the end). What I mean is that I don't want RVE to search text cyclically. I want it to stop at the end. For example I have a block of text

Test1
Test2
Test1
Test3 <<---- starting position
Test1

I identify the starting position using SetSelectionBounds. And now I want to find "Test1" from this position up to the end. If I write

while CWnd.SearchText('Test1', [rvseoDown]) = true do
...

Then the component will find 3 occurrencies, but I need just one...


I would really appreciate your help!
Alex.[/img]
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Currently, it's not possible to define where the search should stop.
The only way - checking if the found word is beyond the limit.
Post Reply