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

TObjectArray.Add

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

Declaration

Source position: objectlists.pas line 67

public function TObjectArray.Add(

  Item: TItem

):Integer;

Arguments

Item

  

Item added in the method.

Function result

Ordinal position in storage when the item was added.

Description

Add is an Integer function used to add the item specified in Item to the storage for the class instance. Add calls the AddObject method to store the value in Item. The associated object is unassigned (Nil) in the method. Use AddObject to store an Item and its associated object.

The return value contains the ordinal position in List where the Item was stored.

See also

TObjectArray.AddObject

  

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

TObjectArray.List

  

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

TObjectArray.Count

  

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


Version 4.0 Generated 2025-05-03 Home