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

TObjectArray.Insert

Inserts a new association at the specified position in List.

Declaration

Source position: objectlists.pas line 74

public procedure TObjectArray.Insert(

  Index: Integer;

  Item: TItem

);

Arguments

Index

  

Ordinal position where the association is inserted.

Item

  

TItem instance used in the inserted association.

Description

Insert is a procedure used to insert a new association at the specified position in List. Item contains the TItem class instance for the association. The object for the association is always set to Nil in the method.

Use InsertObject to insert a new association using both an item and an object.

Use Add or AddObject to append a new item/object association.

See also

TObjectArray.InsertObject

  

Inserts an item/object association at the specified position in the List.

TObjectArray.AddObject

  

Adds the specified item and its associated object to the storage in the class instance.

TObjectArray.Add

  

Adds the specified item to the storage for the class instance.

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