Sign in Join
FPDoc Onlineexperiment

TObjectArray.Add function

Member of TObjectArraypublicIn unit ObjectLists

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

Declaration

pascal
function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.