[Overview][Types][Classes][Index] |
Increases the storage Capacity for the class instance.
Source position: objectlists.pas line 63
protected procedure TObjectArray.Grow; |
Grow increases the storage Capacity (number of item/object associations) for the class instance. Grow ensures that Capacity has a minimum of size of five (5). Otherwise, the number of associations is always increased by doubling the value in the Capacity property, which in turn, reallocates the storage space needed for the List.
Grow is used in the implementation of the AddObject and InsertObject methods. To avoid rampant memory consumption in large lists, caused by doubling the value in Capacity, explicitly set the value in Capacity to a reasonable size prior to calling the Add, AddObject, Insert, or InsertObject methods.
|
Specifies the number of associations that can be stored in the List. |
|
|
Provides access to the list which implements the storage for the item/object associations in the class instance. |
|
|
Adds the specified item to the storage for the class instance. |
|
|
Adds the specified item and its associated object to the storage in the class instance. |
|
|
Inserts a new association at the specified position in List. |
|
|
Inserts an item/object association at the specified position in the List. |
Version 4.0 | Generated 2025-05-03 | Home |