iOS Question Reset Timer?

Discussion in 'iOS Questions' started by stingrae, Sep 12, 2018.

  1. stingrae

    stingrae Member Licensed User


    If I have a timer which set to 30 seconds (for example) ... which refreshes the screen. What happens is that the user is in the middle of doing something and the timer will trigger and the screen refreshes.

    What we want to do is put code on each button so that the timer is set back to be 30 seconds of in-activity before being refreshed.

    Is there a way to reset the Time back to 30 seconds? I've tried the code below on a button, but it has no effect ... the timer keeps firing every 30 seconds.

    Does that make sense? If so, thanks in advance.

    tmrBusiness.Enabled = False
        tmrBusiness.Interval = 
        tmrBusiness.Enabled = 
  2. Erel

    Erel Administrator Staff Member Licensed User

    Your code should work. Are you sure that it doesn't?
    Don't duplicate the code. Call a single sub from all buttons.
    stingrae likes this.
  3. stingrae

    stingrae Member Licensed User

    yeah, you're right ... it does work ... i put the call on the reset in the wrong function ... :oops:
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice