BuiltIn.EnumEvents Method

Applies to TestComplete 14.72, last modified on April 22, 2021
This method is obsolete. See the Remarks section below.

Description

The EnumEvents method returns the ObjEventIterator object which lets you work with a collection of object’s events. Use HasNext and Next methods of the ObjEventIterator object to iterate over the collection of the object’s events.

Declaration

BuiltIn.EnumEvents(Param1Param2)

Param1 [in]    Required    Object    
Param2 [in]    Optional    Boolean Default value: False   
Result An ObjEventIterator object

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

Param1

The object whose events you want to retrieve. If this parameter has the null value (that is, Nothing in VBScript, null in JavaScript, JScript, C++Script and C#Script, None in Python and nil in DelphiScript), the EnumEvents will also return null.

Param2

Specifies whether to retrieve the object's hidden events.

Result Value

An ObjEventIterator object which provides a scripting interface to a collection of object’s events.

Remarks

This method is obsolete. It is supported for backward compatibility only. To obtain information about the object’s events, use the aqObject.GetEvents method.

See Also

GetEvents Method
GetProperties Method
GetMethods Method
GetFields Method
aqObjIterator Object
aqObjEvent Object

Highlight search results