BuiltIn.EnumFields Method

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

Description

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.

Declaration

BuiltIn.EnumFields(Param1Param2)

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:

Parameters

The method has the following parameters:

Param1

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.

Param2

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.

Remarks

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