Results 1 to 5 of 5

Thread: Reset count in setting on date

  1. #1
    New Member
    Join Date
    Aug 12
    Posts
    5

    Reset count in setting on date

    Hello,

    How can i reset the count in My.Settings.PushVerstuurd on 0 when it is the first day of the month.
    It will be reset every month.

    Please help

    Thanks!

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 05
    Location
    Sydney, Australia
    Posts
    80,767

    Re: Reset count in setting on date

    You might have to give a more detailed account of what you're doing and what you want. For instance, is My.Settings.PushVerstuurd an Integer that actually contains a count of something or is it a collection and by resetting the count do you mean clearing it? What type of application is this and how is it being used? Is it running all the time? Is it used every day?

  3. #3
    New Member
    Join Date
    Aug 12
    Posts
    5

    Re: Reset count in setting on date

    It is an application that allows you to include push notifications to send. Each time a push notification is sent, there is one added to the My.Settings.PushVerstuurd.

    At the beginning of the month (1 September, 1 October, etc.) this number is put back to 0.

    How can I do this?

    Thanks for thinking!

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 05
    Location
    Sydney, Australia
    Posts
    80,767

    Re: Reset count in setting on date

    So, ignoring the other questions on purpose or just didn't see them? I did ask them for a reason. If you can't answer them for some reason then say so. If you don't understand or need more information yourself then say so. I'm asking questions because I need that information to provide the appropriate advice. If you just don't bother answering then I can't provide any advice at all without guessing, which I'm not going to do because it's a waste of time if I guess wrong.

  5. #5
    New Member
    Join Date
    Aug 12
    Posts
    5

    Re: Reset count in setting on date

    I'm not so good in English i'm sorry.

    I will proceed to explain:

    When an user clicks a button. The setting 'PushVerstuurd' will be increase with 1 (Integer). But when a new month starts (1st of each month) the value of the 'PushVerstuurd' setting must be 0 (checks when the application starts).

    How can I do the reset ('PushVerstuurd' to 0) when it's a new month.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •