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

16657Re: Creation of clip

Expand Messages
  • Flo
    Jun 21, 2007
      Sheri wrote...

      > I haven't been following this thread in detail, but if he just wants
      > to remove lines having a keyword, wouldn't it be better to use a
      > replace command (replacing keyword lines with "") instead of using
      > getdocmatchall?

      Indeed - why not this way...


      ^!SetScreenUpdate Off
      ^!SetHintInfo Working...
      ^!Set %Doc%=^$GetDocIndex$
      ^!Set %Keywords%=^?[(T=O;F="Textfiles (*.txt)|*.txt")Choose Keyword
      File:]
      ^!Set %Case%=^?[Case-sensitive search:==Yes^=(?-i)|_No^=(?i)]
      ^!Open ^%Keywords%
      ^!Replace "(\r\n)+" >> "|" AWRS
      ^!Replace "\|\Z" >> "" AWRS
      ^!Replace "\A\|" >> "" AWRS
      ^!Set %Search%=^$GetText$
      ^!Close ^%Keywords% Discard
      ^!SetDocIndex ^%Doc%
      ^!Menu Edit/Copy All
      ^!Menu Edit/Paste New
      ^!Replace "^%Case%^.*(^%Search%).*\r\n" >> "" AWRS
      ^!Info Finished!


      Regards,
      Flo
       
    • Show all 30 messages in this topic