The following is the Interface Definition Language (IDL) definition for the IEnumVARIANT interface as seen in the stdole typelib.

    [
        uuid(00020404-0000-0000-C000-000000000046),
        hidden
    ]
    interface IEnumVARIANT : IUnknown
    {
        HRESULT Next([in] unsigned long celt, [in] VARIANT* rgvar, [out] unsigned long* pceltFetched);
        HRESULT Skip([in] unsigned long celt);
        HRESULT Reset();
        HRESULT Clone([out] IEnumVARIANT** ppenum);
    };

This interface has four methods only one of which (the Next method) is currently used by VB when you enumerate a collection using the For Each...Next syntax.

 

vbVision Home | Super Collections