IEnumVARIANT.Next

From Xojo Documentation

Method

IEnumVARIANT.Next_(numElements As UInt32, Byref var As Variant, Byref fetched As UInt32) As Boolean

Supported for all project types and targets.

Attempts to get the next "numElement" items in the enumeration sequence, and return them in "var". Returns True if the number of elements returned matches "numElements", or False if the number of elements returned is less than "numElements"