TObjectArray.SetCapacity procedure
Sets the value for the Capacity property.
Declaration
procedure SetCapacity(const AValue: Integer)Arguments
AValue | New value for the property. |
Description
SetCapacity calls
ReallocMem to ensure that
List contains enough memory for the number of
T2Pointer
instances specified in
AValue. The
Count property is
also updated in the method (when needed) to reflect the new value for the
property.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
