L
Le, Thanh-Nhan
Hi,
I wrote class clsFiels, what serves as collection for another class
(clsField).
I wrote "Property Get NewEnum" as in VB, but I don't know, as if VBA
supports this method.
Public Property Get NewEnum() As IUnknown
Set NewEnum = mCol.[_NewEnum]
End Property
The code is compiled. But when I use: For each ... in .. then error 438
occurs (Object not supports this property or method)
Dim fld As clsField
For Each fld In oData.Fields
Debug.Print fld.Name
Next fld
Note: oData.Fields is correct
Can anybody help me?
Thanks
Nhan
I wrote class clsFiels, what serves as collection for another class
(clsField).
I wrote "Property Get NewEnum" as in VB, but I don't know, as if VBA
supports this method.
Public Property Get NewEnum() As IUnknown
Set NewEnum = mCol.[_NewEnum]
End Property
The code is compiled. But when I use: For each ... in .. then error 438
occurs (Object not supports this property or method)
Dim fld As clsField
For Each fld In oData.Fields
Debug.Print fld.Name
Next fld
Note: oData.Fields is correct
Can anybody help me?
Thanks
Nhan