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, 2004-2020 • Updated: 11/07/18
Comment or report problem with topic