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

5188RE: [Clip] clip help

Expand Messages
  • Gauffin Claes
    Dec 1 7:43 AM
      Hello Dave,
      I am not quite sure what you are trying to do.
      The clip I have appended works in a fashion.
      I commented out your numtracks query since it seemed to me you have it in
      the %trackCount%
      variable already. But then I may have misunderstood

      Regards /Claes

      H="Track & count"
      ^!SET %ROWT%=^$GETROW$
      ^!KEYBOARD CTRL+END
      ^!SET %ROWB%=^$GETROW$
      ^!SET %trackCount%=^$calc(^%ROWB% - ^%ROWT%)$
      ^!SET %N%=0
      ^!SetCursor ^%ROWT%:1
      ^!inserttext
      Artist=^?[Artist]^%nl%Title=^?[Title]^%nl%numtracks=^%trackCount%^%nl%
      ;numtracks=^?[No.Tracks]
      :START
      ^!Jump LINE_START
      ^!INSERT ^%N%=
      ^!INC %N%
      ^!JUMP +1
      ^!IF ^%N% < ^%trackCount% START

      >
      > Hi list
      > Trying to make clip to make the format below could not work out how to
      > include [ 0 ] in the Inc. command???
      >
      > artist=Abraxas Pool
      > title=Abraxas Pool
      > numtracks=4
      > 0=Boom Ba Ta Ya
      > 1=A Million Miles Away
      > 2=Baila Mi Cha Cha
      > 3=Waiting For You
      >
      > the no. of tracks can vary.
      >
      > H="Track & count"
      >
      > ^!SET %ROWT%=^$GETROW$
      > ^!KEYBOARD CTRL+END
      > ^!SET %ROWB%=^$GETROW$
      > ^!SET %trackCount%=^$calc(^%ROWB% - ^%ROWT%)$
      > ^!SET %N%=1
      > ^!SetCursor ^%ROWT%:1
      > Artist=^?[Artist]
      > Title=^?[Title]
      > numtracks=^?[No.Tracks]
      > 0=
      > :START
      > ^!Jump LINE_START
      > ^!INSERT ^%N%=
      > ^!INC %N%
      > ^!JUMP +1
      > ^!IF ^%N% <= ^%trackCount% START
      >
    • Show all 3 messages in this topic