Clear Method

Applies to TestComplete 14.70, last modified on April 22, 2021

Description

Removes all the Timer objects from the TimersObj collection.

Declaration

TimersObj.Clear()

TimersObj An expression, variable or parameter that specifies a reference to a Timers object
Result None

Applies To

The method is applied to the following object:

Result Value

None.

Example

The code below demonstrates how you can remove all the Timer objects from the Timers collection.

JavaScript, JScript

function TestProc()
{
  // Removes all the objects from the Timers collection
  Utils.Timers.Clear;
  // ...
}

Python

def TestProc():
  # Removes all the objects from the Timers collection
  Utils.Timers.Clear()
  # ...

VBScript

Sub TestProc
  ' Removes all the objects from the Timers collection
  Call Utils.Timers.Clear
  ' ...
End Sub

DelphiScript

procedure TestProc;
begin
  // Removes all the objects from the Timers collection
  Utils.Timers.Clear;
  // ...
end;

C++Script, C#Script

function TestProc()
{
  // Removes all the objects from the Timers collection
  Utils["Timers"]["Clear"];
  // ...
}

See Also

Using Timers
Timers.Delete
Timers.Add

Highlight search results