• SPARK Support
    October 8, 2015 at 1:09 pm #824

    Is it possible to add a stop after occurrence for the Timer control?  For ex: the repeatable stops after 20 occurances

    October 8, 2015 at 1:31 pm #826

    While there is no built in way to have the timer stop after firing a given number of times (or ticks), it does have 2 methods that can be useful for this: getTicks(), which returns the number of times the timer has fired, and stop(), which stops the timer. It is worth noting that the timer will tick BEFORE executing the On Timeout event, so if using getTicks in here, the smallest expected value should be 1, as the timer will tick from 0 before executing getTicks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search