Counter - property of the PmaTimer object
The counter that allows to limit the number of next timer runs.
Counter > 0 - Value greater than 0 means the number of next timer runs. Each timer run automatically decreases the value of the counter by 1.
Counter = 0 - Value equal to 0 means that the timer will not be started.
Counter = -1 - Value equal to -1 means that the number of timer runs is unlimited (default).
Property access for read and write
. The limited number of runs can be called by the StartEx
method with assigned nCounter
var oTimer = pMe.Pm("/Timer");
var nCounter = oTimer.Counter;
oTimer.Counter = -1;