[Overview][Types][Classes][Index] Reference for unit 'ObjectLists' (#lazutils)

TObjectArray.SetCapacity

Sets the value for the Capacity property.

Declaration

Source position: objectlists.pas line 61

protected procedure TObjectArray.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

TObjectArray.Capacity

  

Specifies the number of associations that can be stored in the List.

TObjectArray.Count

  

Number of item/object associations currently stored in the List.


Version 4.0 Generated 2025-05-03 Home