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

Re: [Clip] Re: 4.95 Help

Expand Messages
  • Sezor
    Thanks for that Eb - I think we re in agreement. Sezor
    Message 1 of 3 , Aug 27, 2011
      Thanks for that Eb - I think we're in agreement.
      Sezor


      Eb wrote:
      > End and Start refer to the LINE and COL where the END and START of the selection is located. If you add the following line of code just ABOVE the Goto END of your test code, you will see what I mean:
      >
      > ;long line
      > ^!Info [L]Selection starts at ^%nl%Line:Col ^%SelectionStart%^%nl%and ends at ^%nl%Line:Col ^%SelectionEnd%
      > ;end long line
      >
      >
      >
      > By the way, this is still valid for NoteTab 6.2.
      >
      >
      > Cheers,
      >
      >
      > Eb
      >
      > --- In ntb-clips@yahoogroups.com, Sezor <sezor@...> wrote:
      >>
      >> Thanks for all the contributions.
      >> One on 4.95
      >>
      >> In the following extracts from the help file for 4.95 :-
      >>
      >> ^$GetColEnd$
      >> Returns the cursor column index in the current document.
      >>
      >> ^$GetColStart$
      >> Returns the cursor column index in the current document.
      >>
      >> ^$GetRowEnd$
      >> Returns the cursor line index the in current document.
      >>
      >> ^$GetRowStart$
      >> Returns the cursor line index in the current document.
      >>
      >> it seems to me that End & Start refer to End & Start of the
      >> selection,
      >> not of the line.
      >> Quick tests confirm it, but if anyone knows more, it would be
      >> good to know it.
      >>
      >> Below is code I used to test it :
      >>
      >> ^!Set %SelectionStart%=^$GetRowStart$:^$GetColStart$
      >> ^!Set %SelectionEnd%=^$GetRowEnd$:^$GetColEnd$
      >> ^!Set %SelSize%=0
      >> ^!SetCursor ^%SelectionStart%
      >> ^!SelectTo ^%SelectionEnd%
      >> ^!Goto end
      >>
      >> Sezor
      >>
      >
      >
      >
      >
      > ------------------------------------
      >
      > Fookes Software: http://www.fookes.com/
      > NoteTab website: http://www.notetab.com/
      > NoteTab Discussion Lists: http://www.notetab.com/groups.php
      >
      > ***
      > Yahoo! Groups Links
      >
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.