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(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:
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
aqObject.GetFields Method
aqObject.GetProperties Method
aqObject.GetMethods Method
aqObject.GetEvents Method
aqObjIterator Object
aqObjField Object