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

19760Re: [Clip] Re: title varible

Expand Messages
  • tom thomas
    Oct 9, 2009
    • 0 Attachment
      Silly me, I copied from my own email message instead of yours. Your
      original clip works

      ^!If ^$GetSelSize$=0 Next Else Skip_2
      ^!SetCursor ^$GetRow$:1
      ^!Select EOL
      ^!Set %mod%=^$GetDocReplaceAll("[!\x20.,?]+";"")$
      ^!Jump Select_Start
      ^!InsertText ^%mod%^%NL%
      ^!ClearVariable %mod%
      ^!Goto End
      ;end of clip

      Results

      ThisIsMyTitle
      This Is My Title


      That's what I want.

      Thanks,
      Tom Thomas


      At 06:52 PM 10/9/2009, you wrote:
      >
      >
      >
      >
      >--- In
      ><mailto:ntb-clips%40yahoogroups.com>ntb-clips@yahoogroups.com, tom
      >thomas <tom@...> wrote:
      > >
      > > This does the same as my clip
      > >
      > > ^!If ^$GetSelSize$=0 Next Else Skip_2
      > > ^!MoveCursor ^%GetRow%:0
      > > ^!Select EOL
      > > ^!Set %mod%=^$GetDocMatchAll("[!\x20.,?]+";"")$
      > > ^!Jump Select_Start
      > > ^!InsertText ^%mod%^%NL%
      > > ^!ClearVariable %mod%
      > > ;end of clip
      > >
      > > The original is not there.
      > >
      > > And NoteTab Pro 5.1
      > >
      > > Thanks,
      > > Tom
      >
      >I posted a correction.
      >
      >the line:
      >^!MoveCursor ^%GetRow%:0
      >should be:
      >^!SetCursor ^%GetRow%:1
      >
      >Using ^$GetDocMatchAll can't possibly do what you want, it would
      >produce a string separated by semicolons of the runs of exclamation
      >points, etc. The clip would insert that string with a line break in
      >front of the selection.
      >
      >^$GetDocReplaceAll was introduced in version 5.7.
      >
      >Current NoteTab version is 6.12. It should be a free update from 5.1.
      >
      >There have been many improvements and bug fixes since 5.1.
      >
      >Regards,
      >Sheri
      >
      >
    • Show all 12 messages in this topic