You need to pass an IEnumVARIANT enumerator object. For more info you
might want to have a look at the CSuperCollection example in the
Collections section at http://www.mvps.org/vbvision/
HTH,
Bryan
____________________________________________________________
New Vision Software "When the going gets weird,"
Bryan Stafford "the weird turn pro."
alpine_don'tsendspam@mvps.org Hunter S. Thompson -
Microsoft MVP-Visual Basic Fear and Loathing in LasVegas
> You need to pass an IEnumVARIANT enumerator object. For more info you
> might want to have a look at the CSuperCollection example in the
> Collections section at http://www.mvps.org/vbvision/
>
> HTH,
> Bryan
Thanks Bryan
I'd just been there ... it seems quite a bit of work to implement this
interface to get a "for each ..." where I could more simply use a "For i
..."
Does the "For each ..." offer signifcant performance improvements or are
there other benefits from implementing the IEnumVARIANT.
S
alpine - 24 Mar 2005 20:01 GMT
>> You need to pass an IEnumVARIANT enumerator object. For more info you
>> might want to have a look at the CSuperCollection example in the
[quoted text clipped - 13 lines]
>
>S
Actually, I suspect using For Each would be a little less performant
than a standard For....Next loop but don't have any data to back that
up. The benefits are in the abbreviated syntax used and not having to
determine the array bounds & etc... when setting up the loop. It is
up to you to decide whether or not implementing the For Each syntax is
worth it in your specific instance.
HTH,
Bryan
____________________________________________________________
New Vision Software "When the going gets weird,"
Bryan Stafford "the weird turn pro."
alpine_don'tsendspam@mvps.org Hunter S. Thompson -
Microsoft MVP-Visual Basic Fear and Loathing in LasVegas