Description
Specifies the total number of timers in the TimersObj
collection.
Declaration
TimersObj.Count
Read-Only Property | Integer |
TimersObj | An expression, variable or parameter that specifies a reference to a Timers object |
Applies To
The property is applied to the following object:
Property Value
An integer value that specifies the total number of Timer
objects in the TimersObj collection.
Example
The code below demonstrates how you can iterate through the items of the Timers
collection using the Count
property.
JavaScript, JScript
function Test1()
{
for (var i = 0; i < Utils.Timers.Count; i++)
Utils.Timers.Items(i).Enabled = True;
}
Python
def Test1():
for i in range (0, Utils.Timers.Count):
Utils.Timers.Items[i].Enabled = True
VBScript
Sub Test1
For i = 0 To Utils.Timers.Count-1
Utils.Timers.Items(i).Enabled = True
Next
End Sub
DelphiScript
procedure Test1;
var i;
begin
for i := 0 to Utils.Timers.Count-1 do
begin
Utils.Timers.Items(i).Enabled := True;
end;
end;
C++Script, C#Script
function Test1()
{
for (var i = 0; i < Utils["Timers"]["Count"]; i++)
Utils["Timers"]["Items"](i)["Enabled"] = True;
}