ComArray.FromEnumerable

This method can be used to turn non-array collections that are not directly accessible by FoxPro into arrays.

Truly enumerable types that load data one record at a time as they are looped over don't work with COM - only arrays or other memory bound lists work over COM. This method allows 'virtual' lists to be turned into memory bound arrays first that are then accesible.

oComArray.FromEnumerable(loEnumerable)

Parameters

loEnumerable
An IEnumerable object instance that is not an array. This could be a list or other collection that otherwise is unaccessible in FoxPro.

Example

loMembers = loBridge.CreateArray()
loMembers.FromEnumerable(loObj.Members)
? loMembers.Count

See also:

Class ComArray

© West Wind Technologies, 1996-2022 • Updated: 11/25/21
Comment or report problem with topic