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

TObjectArray.Pack

Removes all associations where the Item class instance is unassigned (contains Nil).

Declaration

Source position: objectlists.pas line 80

public procedure TObjectArray.Pack;

Description

Pack is a procedure used to remove all associations where the Item class instance is unassigned (contains Nil). Pack iterates over the allocated storage in List to determine if the T2Pointer.Item member is unassigned. When an an unassigned item is found, subsequent associations are moved to fill the storage position(s) for any unused items. Pack updates the value in the Count property to reflect the new number of associations in List.


Version 4.0 Generated 2025-05-03 Home