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

TObjectArray.First

Gets the first TItem class instance in the List, or Nil when empty.

Declaration

Source position: objectlists.pas line 72

public function TObjectArray.First: TItem;

Function result

TItem class instance at the first position in the List.

Description

First is a TItem function used to get the class instance stored in the first association. First uses the List to access the T2Pointer stored in element zero (0) for the array.

The return value is the Item in the association cast to the TItem class type used for the generic class specialization. When Count contains zero (0), the return value is Nil.

See also

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.

T2Pointer

  

Record type with pointers to members in the association.


Version 4.0 Generated 2025-05-03 Home