Creates a new instance of one of the list/collection's data type without actually adding it to the array, and returns the created object instance.

It's a shortcut to explicitly using CreateInstance(arrayElementType), which makes it easier create empty objects that can be populated in FoxPro without specifying the full type name each time, resulting in cleaner code in FoxPro.

public object CreateItem()

Return Value

Item created or null, or if no items or unable to create (or object


For any non-generic typed lists, this method assumes that the collection has at least one item in it from which to derive the type to instantiate. If no items are available, null is returned.

See also:

Class ComArray

© West Wind Technologies, 2023 • Updated: 01/13/23
Comment or report problem with topic