Clear Method

Applies to TestComplete 14.92, last modified on September 16, 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
Delete Method
Add Method

Highlight search results