BuiltIn.EnumFields Method

Applies to TestComplete 15.41, last modified on July 01, 2022
This method is obsolete. See the Remarks section below.


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


BuiltIn.EnumFields(Param1, Param2)

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

Applies To

The method is applied to the following object:


The method has the following parameters:


The object whose fields 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 EnumFields will also return null.


Specifies whether to retrieve hidden fields of the object. Hidden fields are the ones which are displayed in the Object Browser but are not listed in the Code Completion window.

Result Value

An ObjFieldIterator object which provides a scripting interface to the collection of the object’s fields.


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

See Also

GetFields Method
GetProperties Method
GetMethods Method
GetEvents Method
aqObjIterator Object
aqObjField Object

Highlight search results