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

TObjectArray.Last

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

Declaration

Source position: objectlists.pas line 76

public function TObjectArray.Last: TItem;

Function result

TItem instance stored at the last position in List.

Description

Last is a TItem function used to get the last item instance in the allocated storage in List. Last uses the value in Count to determine the position for the last item/object association. When Count is zero (0), the List is empty and the return value is set to 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