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

Insert String in Line

Expand Messages
  • T L
    Insert String in Line: ;  ;----------------------[begin long line]--------------------------- ^!Set %Column%=^?{Enter Column to insert to=}; %String%=^?{Enter
    Message 1 of 3 , Dec 14, 2012
    • 0 Attachment
      Insert String in Line:


      ;----------------------[begin long line]---------------------------
      ^!Set %Column%=^?{Enter Column to insert to=}; %String%=^?{Enter string to insert=}^%SPACE%
      ;-----------------------[end long line]----------------------------

      ^!Set %Start%=^$GetRowStart$; %End%=^$GetRowEnd$
      ^!IfTrue ^$IsEmpty(^$GetSelection$)$ Next ELSE Skip_2
      ^!Info [L]You must select one or more lines to use this^Pclip.  Try again.
      ^!Goto Exit
      :Loop
      ^!Jump ^%Start%
      ^!Select Line
      ^!InsertText ^$StrInsert(^%String%;^$GetSelection$;^%Column%)$
      ^!If ^%Start%=^%End% Exit ELSE Next
      ^!Inc %Start%
      ^!Goto Loop

      Example:
      1. text text
      2. text text
      3. text text
      4. text text
      5. text text


      Result:
      1: 1. text text
      1: 2. text text
      1: 3. text text
      1: 4. text text
      1: 5. text text

      It must be:

      1:1. text text
      1:2. text text
      1:3. text text
      1:4. text text
      1:5. text text


      What's wrong in the clip because I got space after:?


      [Non-text portions of this message have been removed]
    • Don
      Nothing is wrong with the clip. Just take out your space: ;----------------------[begin long line]--------------------------- ^!Set %Column%=^?{Enter Column
      Message 2 of 3 , Dec 14, 2012
      • 0 Attachment
        Nothing is wrong with the clip. Just take out your space:
        ;----------------------[begin long line]---------------------------
        ^!Set %Column%=^?{Enter Column to insert to=}; %String%=^?{Enter string
        to insert=}
        ;-----------------------[end long line]----------------------------

        If you insert a space don't be surprised to get a space back :-)

        My outcome:
        1:1. text text
        1:2. text text
        1:3. text text
        1:4. text text
        1:5. text text


        On 12/14/2012 4:06 PM, T L wrote:
        > Insert String in Line:
        >
        > ;
        > ;----------------------[begin long line]---------------------------
        > ^!Set %Column%=^?{Enter Column to insert to=}; %String%=^?{Enter string to insert=}^%SPACE%
        > ;-----------------------[end long line]----------------------------
      • puusto13
        Yes you are right:)
        Message 3 of 3 , Dec 16, 2012
        • 0 Attachment
          Yes you are right:)

          --- In ntb-clips@yahoogroups.com, Don <don@...> wrote:
          >
          > Nothing is wrong with the clip. Just take out your space:
          > ;----------------------[begin long line]---------------------------
          > ^!Set %Column%=^?{Enter Column to insert to=}; %String%=^?{Enter string
          > to insert=}
          > ;-----------------------[end long line]----------------------------
          >
          > If you insert a space don't be surprised to get a space back :-)
          >
          > My outcome:
          > 1:1. text text
          > 1:2. text text
          > 1:3. text text
          > 1:4. text text
          > 1:5. text text
          >
          >
          > On 12/14/2012 4:06 PM, T L wrote:
          > > Insert String in Line:
          > >
          > > ;
          > > ;----------------------[begin long line]---------------------------
          > > ^!Set %Column%=^?{Enter Column to insert to=}; %String%=^?{Enter string to insert=}^%SPACE%
          > > ;-----------------------[end long line]----------------------------
          >
        Your message has been successfully submitted and would be delivered to recipients shortly.