Bertram,
As Deanna already mentioned, there is no "search all of this text *and* show
the results" (two completely different things!) API function available.
If you want to search a whole text than you simply have to use the suggested
'StrStr" function in a loop (the second search than starts from the end of
the current found string), untill the StrStr function returns with a "string
not found" status (result equals Zero).
How you than represent those results to your user is a whole different
matter. Depending on where you are searching in (a document ? a
text-window ?) you could simply display the character-position (subtract the
start of the searchbuffer before displaying the result!). You could also try
to decompse that character-position into a line-number and offset therein.
For a RichText box you could try to "hilite" the found words by, for
instance bolding them.
In short: When going the API way you will most unlikely find full solutions
to a problem. It means that you will (normally) have to combine several API
functions to create a solution. Thats the way it is, sorry :-\ :-)
Regards,
Rudy Wieser
P.s.
Even with my "it could be this or that" possibilities I described in my
previous post I was nowhere near to what you where looking for. Another
reason to be clear about it. <whistle>
5195f9d0$0$1365$4faf...@reader2.news.tin.it...