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

[Clip] Re: Replace Using ^$GetField(...)$

Expand Messages
  • Jody
    Hi Steve, ... Argh - dummy me on a late night thing. The cursor lands at the end of the selection. So, yes, H will do it and also B to search backwards which
    Message 1 of 2 , Oct 31, 1999
    • 0 Attachment
      Hi Steve,

      > I added the H to the replace

      Argh - dummy me on a late night thing. The cursor lands at the
      end of the selection. So, yes, H will do it and also B to search
      backwards which is what I used. They both have exactly the same
      results in this case. Thanks! As soon as I read your posts today
      and saw H worked I knew what the problem was.

      I just started playing around with GetField a week or so ago. It
      actually moves the cursor and selects the field. I really like
      the function. Neat toy. <g>

      I added a second one that will replace a field. I put Today's
      Date in as a default for an example.

      <--- Copy below this line --->
      H=Reorder Numbers...
      ; 10/31/1999, Sojourner@..., jody
      ^!Set %n%=^$GetRow$; %StartInc%=^?[Start numbering at=5]; %StopInc%=^?[Stop at=7]; %Field%=^?[Do field number=2]
      ^!SetDelimiter ^?[Enter Delimiter: ^p ^t ";", Tab shown=^t]

      :Loop
      ^!Replace "^$GetField(^%n%;^%Field%)$" >> "^%StartInc%" SB
      ^!If ^%StartInc% = ^%StopInc% End
      ^!Inc %n%
      ^!Inc %StartInc%
      ^!Goto Loop


      H=Replace Field...
      ; 10/31/1999, Sojourner@..., jody
      ^!Set %n%=^?[(1)Start Replacing at row number=_Cursor position^=^$GetRow$|]; %StopInc%=^?[(2)Stop at row number=_End of Document^=^$GetLineCount$|]; %Field%=^?[(3)Edit field number=_1|]
      ^!SetDelimiter ^?[(5)Enter Delimiter: ^p ^t ";", Tab shown=^p|_^t|";"]

      :Loop
      ^!Replace "^$GetField(^%n%;^%Field%)$" >> "^?[(4)Replace field with=_Today's Date^=^$GetDate(mm-dd-yyyy)$|]" SB
      ^!If ^%n% = ^$Calc(^%StopInc%-1;0)$ End
      ^!Inc %n%
      ^!Inc %StartInc%
      ^!Goto Loop

      <--- Copy above this line, right --->
      <--- click over the Clipbook and --->
      <--- choose "Add from Clipboard" --->


      Thanks!
      Jody

      Clean-Funnies: click and send...
      mailto:CF@...?subject=Subscribe
    Your message has been successfully submitted and would be delivered to recipients shortly.