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

TObjectArray.Assign

Assigns TItem class instances specified in SrcList to the List storage in the class.

Declaration

Source position: objectlists.pas line 78

public procedure TObjectArray.Assign(

  SrcList: TList

);

Arguments

SrcList

  

TList with the TItem class instances stored in the method.

Description

Assign is a procedure used to stored TItem class instances in SrcList to the List storage for the class. Assign calls the Clear method to remove all existing item/object associations stored in List.

Assign sets the value in Count to the length in SrcList. The method iterates over the values in the TList instance, and stores the TItem instances in the corresponding positions in List. The associated object for all entries in List is unassigned (Nil).

See also

TObjectArray.Clear

  

Removes all item/object associations stored in the List.

TObjectArray.Count

  

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

TObjectArray.List

  

Provides access to the list which implements the storage for the item/object associations in the class instance.

T2Pointer

  

Record type with pointers to members in the association.


Version 4.0 Generated 2025-05-03 Home