Sign in Join
FPDoc Onlineexperiment

TObjectArray.Remove function

Member of TObjectArraypublicIn unit ObjectLists

Removes the association with the specified TItem class instance.

Declaration

pascal
function Remove(Item: TItem): Integer

Description

Remove is an Integer function used to delete the item/object association with the specified TItem class instance. The return value contains the result returned from IndexOf. The return value is -1 when Item is not found in List. When Item exists in List, the Delete method is called to remove the association at the position in the return value.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.