D
Dick Watson
This works:
Set objMyObject = New MyObject
objMyObject.MyProperty = 1
This doesn't work, reports Object doesn't support this method or property
Set objMyObjectArray(lngPtr) = New MyObject
objMyObjectArray(lngPtr).MyProperty = 1
Why not? What am I missing? (Probably something really stupid, but I'm
approaching a mental vapor lock on this.) If I look in the watch window, I
clearly see the object get created in the array by the Set. I see it's
MyProperty property. The assign to the property blows up.
Set objMyObject = New MyObject
objMyObject.MyProperty = 1
This doesn't work, reports Object doesn't support this method or property
Set objMyObjectArray(lngPtr) = New MyObject
objMyObjectArray(lngPtr).MyProperty = 1
Why not? What am I missing? (Probably something really stupid, but I'm
approaching a mental vapor lock on this.) If I look in the watch window, I
clearly see the object get created in the array by the Set. I see it's
MyProperty property. The assign to the property blows up.