Summary of [WayBack] A COM Object Collection (IEnumVARIANT) – Delphi Tips – CJC Delphi (Cool Delphi Tips)
Question: How to implements object collection that support Visual Basic’s For Each construct ?
Answer:
In order to implements an object collection your object has to returnIEnumVariant
pointer from a special property named_NewEnum
.
Via: [WayBack] What interface to I need to implement to allow ForEach in VBA on a COM object written in delphi? – Stack Overflow
–jeroen