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

Re: [Clip] How to capture length of several selections and copy length to variable.

Expand Messages
  • Flo
    ... Don, Wouldn t it be easier to first separate those five fields with a delimiter like this: 1 315 |First Last |Team 11 |15:38.1| 4:55 Now, if
    Message 1 of 4 , Oct 13, 2007
      --- In ntb-clips@yahoogroups.com, "Don - HtmlFixIt.com" <don@...>
      wrote:

      > This seems to work:
      > ^!Info [C]Copy Characters Before Name and Hit Control C

      Don,

      Wouldn't it be easier to first separate those five fields with a
      delimiter like this:

      1 315 |First Last |Team 11 |15:38.1| 4:55

      Now, if this string is stored in line #1 of your document you could
      run...

      ^!ClearVariables
      ^!SetDelimiter "|"
      ^!Set %Output%=a:^$StrSize(^$GetField(1;1)$)$ name:^$StrSize
      (^$GetField(1;2)$)$ school:^$StrSize(^$GetField(1;3)$)$ b:^$StrSize
      (^$GetField(1;4)$)$ c:^$StrSize(^$GetField(1;5)$)$
      ^!Jump Doc_End
      ^!InsertText ^P^%Output%

      The output would be...

      a:12 name:21 school:8 b:7 c:7

      Regards,
      Flo
       
    • Sheri
      I believe what you re looking for is: ^!Info ^$GetSelSize$ Regards, Sheri
      Message 2 of 4 , Oct 13, 2007
        I believe what you're looking for is:

        ^!Info ^$GetSelSize$

        Regards,
        Sheri
      Your message has been successfully submitted and would be delivered to recipients shortly.