Reminder.getRepeatWeeklyDays() and getRepeatMonthly() change in behaviour?

Kevin Stembridge's Avatar

Kevin Stembridge

02 Jul, 2015 09:44 PM

Hi Sean,

I've noticed a change in behaviour of the Reminder.getRepeatWeeklyDays() and Reminder.getRepeatMonthly() methods. They previously returned an empty array if there were no weekly or monthly occurrences for the reminder but now they return an array of size 1 containing the value 0.

I've modified the Forecaster to cater for this new behaviour but I wanted to check that it was intentional in case there was any possibility of it changing again.

Cheers,

Kevin

  1. Support Staff 1 Posted by Sean Reilly on 03 Jul, 2015 12:45 PM

    Sean Reilly's Avatar

    Hi Kevin,

    Moneydance will just store and return whatever int array it is given, and I don't see anything in the code that will set it to an array with a single zero in it. Maybe there's another extension that put that array into the object?

    Thanks

    Sean Reilly
    Developer, The Infinite Kind
    http://infinitekind.com

  2. 2 Posted by Kevin Stembridg... on 03 Jul, 2015 03:03 PM

    Kevin Stembridge's Avatar

    Hi Sean,

    Thanks for getting back to me.

    It's a strange one. I've removed all other extensions and I still see the same behaviour.

    If I set a reminder to occur, for example, on the 5th and 7th of every month I see an array of size 2 containing 5 and 7, as expected. If I then deselect 5th and 7th so that there are no monthly occurrences I see an array of size 1 with the value 0. So if something is setting it incorrectly it is doing so after I edit in the reminder scheduling panel.

    I've added some logic to only count the number of elements in the array where the value is greater than zero, so I think I'm covered now. But I still don't know why it is happening.

    Anyways, thanks for your help.

    Kevin

  3. System closed this discussion on 19 Mar, 2016 04:59 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac