[Remind-Fans] Remind-fans Digest, Vol 105, Issue 4

Roger aretae at magma.ca
Mon Dec 10 21:32:33 EST 2012


Thanks David,

That helped, this is what seems to work for me:

PUSH-OMIT-CONTEXT
OMIT 2012-10-06 # Thanksgiving Weekend
OMIT 2013-03-16 # March Break
OMIT 2013-03-30 # Easter Weekend
IF today() >= '2012-09-12' && today() <= '2012-12-19'
     SET LessonNum 
nonomitted('2012-09-12',today(),"Sun","Mon","Tue","Wed","Thu","Fri")
     REM Sat FROM 2012-09-12 UNTIL 2012-12-19 AT 10:45 DURATION 0:45 
SKIP MSG Skating Lesson [LessonNum + 1] %"%"(%3 %c [CountDown()])
ENDIF
IF today() >= '2013-01-12' && today() <= '2013-04-15'
     SET LessonNum 
nonomitted('2013-01-12',today(),"Sun","Mon","Tue","Wed","Thu","Fri")
     REM Sat FROM 2013-01-11 UNTIL 2013-04-15 AT 10:45 DURATION 0:45 
SKIP MSG Skating Lesson [LessonNum + 1] %"%"(%3 %c [CountDown()])
ENDIF
POP-OMIT-CONTEXT



On 12-12-09 12:00 PM, remind-fans-request at lists.roaringpenguin.com wrote:
> Send Remind-fans mailing list submissions to
> 	remind-fans at lists.roaringpenguin.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/remind-fans
> or, via email, send a message with subject or body 'help' to
> 	remind-fans-request at lists.roaringpenguin.com
>
> You can reach the person managing the list at
> 	remind-fans-owner at lists.roaringpenguin.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Remind-fans digest..."
>
>
> Today's Topics:
>
>     1. Increment Counter Variable (Roger)
>     2. Re: Increment Counter Variable (David F. Skoll)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 09 Dec 2012 06:09:55 -0500
> From: Roger <aretae at magma.ca>
> To: remind-fans at lists.roaringpenguin.com
> Subject: [Remind-Fans] Increment Counter Variable
> Message-ID: <50C47183.6050307 at magma.ca>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> I would like to have a counter that increments for each event.   Say, I
> have 10 skating lessons over a period of time with OMITs for each
> triggered event I would like to display the following messages:
>
>
> Skating Lesson 1
> Skating Lesson 2
> .
> .
> .
> Skating Lesson 10
>
> but I haven't been able to increment the variablefrom one event to the
> next.  I have looked at man remindwith respect fset and expr but I
> couldn't make anything that works.
>
> If this is possible how should I do it?
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 9 Dec 2012 10:41:33 -0500
> From: "David F. Skoll" <dfs at roaringpenguin.com>
> To: remind-fans at lists.roaringpenguin.com
> Subject: Re: [Remind-Fans] Increment Counter Variable
> Message-ID: <20121209104133.55fe09eb at shishi.roaringpenguin.com>
> Content-Type: text/plain; charset=US-ASCII
>
> On Sun, 09 Dec 2012 06:09:55 -0500
> Roger <aretae at magma.ca> wrote:
>
>> I would like to have a counter that increments for each event.   Say,
>> I have 10 skating lessons over a period of time with OMITs for each
>> triggered event I would like to display the following messages:
>> Skating Lesson 1
>> Skating Lesson 2
>> .
>> .
>> .
>> Skating Lesson 10
> I can't think of an easy way to do this, sorry.  You might be able
> to hack something with nonomitted() and some arithmetic, but Remind does not
> have a way to keep that sort of state across different trigger dates.
>
> Regards,
>
> David.
>
>
> ------------------------------
>
> _______________________________________________
> Remind-fans mailing list
> Remind-fans at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/remind-fans
> Remind is at http://www.roaringpenguin.com/products/remind
>
>
> End of Remind-fans Digest, Vol 105, Issue 4
> *******************************************
>



More information about the Remind-fans mailing list