[Clip] Re: Using FIND in OTL-Document
- Hi Larry & RS
> If you have to do a repeating find through the contents, the find commandThe clip above is exactly that I was looking for!
> will unselect everthing except the found text and the next repeat will not
> work. In this case since you already know that you are going to be
> searching from there to the end of the initial selection, you can do the
> ^!Select All
> ^!Set %Cursor%=^$GetRowEnd$:^$GetColEnd$
> ^!Find "Search Text" TIH
> ^!IfError Exit Else Next
> ;place code for what you want done with the found text here.
> ;If your code does not unselect the found text you need the next line to
> move past
> ;the end of the found text so the loop does not get stuck finding the same
> ;over and over again. Otherwise you can delete ^!Jump Select_End.
> ^!Jump Select_End
> ^!SelecTo ^%Cursor%
> ^!Goto Loop
Thanks for helping
- Hi Andreas,
At 02/26/00 10:49 PM +0100, you wrote:
>Hi Larry & RSOops! I thought you wanted to get the Headers. Sorry.
>The clip above is exactly that I was looking for!
> >Normaly the search will be done on the whole document. HowSpeed-reading isn't working well today :)
> >can I search only in the CONTENTS of the specified header.