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

Re: [Clip] Re: Simple filename and the date for Sunday

Expand Messages
  • hsavage
    ... lines under :Loop ? ... Flo, Your clip is as follows and you entered the date 1119 , I mistakenly entered 1118 and the clip didn t loop because it
    Message 1 of 8 , Nov 19 6:32 AM
    • 0 Attachment
      On 11/19/2012 7:58 AM, flo.gehrke wrote:
      > --- In ntb-clips@yahoogroups.com, hsavage <hsavage@...> wrote:
      >> Flo,
      >> As it is, your clip doesn't work. Transpose the first 2 lines under
      >> :Loop and it will.
      > Thanks, Harvey. But what do you mean with "Transpose the first 2
      lines under :Loop"?
      > When changing my clip to...
      > :Loop
      > ^!Set %Date%=^?{Enter a date (yyyymmdd):}
      > ^!Set %DateNr%=^$GetDateToInt(^%Date%;yyyymmdd)$
      > ^!IfSame "So" "^$GetDateFromInt(^%DateNr%;ddd)$" Match
      > ^!Inc %DateNr%
      > ^!Goto Loop
      > :Match
      > ^!Info Next Sunday: ^$GetDateFromInt(^%DateNr%;yyyymmdd)$
      > ...it endlessly prompts the user to enter a date.
      > I think the problem is in my reply to Adrian (#23418).
      > Regards,
      > Flo


      Your clip is as follows and you entered the date '1119', I mistakenly
      entered '1118' and the clip didn't loop because it looked for 'Sun' on a

      ^!IfSame "Sun" "^$GetDateFromInt(^%DateNr%;ddd)$" Match
      ^!Inc %DateNr%
      ^!Goto Loop

      I swapped the first 2 lines and since '%DateNr%' incremented first the
      clip ran OK.

      ^!Inc %DateNr%
      ^!IfSame "Sun" "^$GetDateFromInt(^%DateNr%;ddd)$" Match
      ^!Goto Loop

      ¤. JD#...324 - ¤. SL...980 - 12.11.19~08.11.25

      . Newspaper Headline...
      . Farmer Bill Dies In House.

      EUR hrs EUR hsavage EUR pobox EUR com

      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.