Loading ...
Sorry, an error occurred while loading the content.

[Clip] Re: Using FIND in OTL-Document

Expand Messages
  • Andreas K├╝stermeyer
    Hi Larry & RS ... The clip above is exactly that I was looking for! Thanks for helping andreas
    Message 1 of 3 , Feb 26, 2000
    • 0 Attachment
      Hi Larry & RS

      > If you have to do a repeating find through the contents, the find command
      > 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
      > following:
      >
      > ^!Select All
      > ^!Set %Cursor%=^$GetRowEnd$:^$GetColEnd$
      > :Loop
      > ^!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
      > text
      > ;over and over again. Otherwise you can delete ^!Jump Select_End.
      > ^!Jump Select_End
      > ^!SelecTo ^%Cursor%
      > ^!Goto Loop
      >

      The clip above is exactly that I was looking for!

      Thanks for helping

      andreas
    • RS
      Hi Andreas, ... Oops! I thought you wanted to get the Headers. Sorry. ... Speed-reading isn t working well today :) Regards, RS
      Message 2 of 3 , Feb 26, 2000
      • 0 Attachment
        Hi Andreas,

        At 02/26/00 10:49 PM +0100, you wrote:

        >Hi Larry & RS
        >
        >
        >The clip above is exactly that I was looking for!


        Oops! I thought you wanted to get the Headers. Sorry.


        > >Normaly the search will be done on the whole document. How
        > >can I search only in the CONTENTS of the specified header.


        Speed-reading isn't working well today :)



        Regards,

        RS
      Your message has been successfully submitted and would be delivered to recipients shortly.