Skip to main content

TdxDynamicItemList.LastIndex Property

Returns the last stored item‘s position within the sparse item list.

Declaration

property LastIndex: Integer read;

Property Value

Type
Integer

Remarks

You can use the FirstIndex and LastIndex properties to obtain the first and last occupied positions within the sparse list. The LastIndex property returns -1 if the list is empty; otherwise, it returns the last item’s index.

The Count property always returns the LastIndex property value plus one.

Note

The FirstIndex and LastIndex property values match if the dynamic list contains only one item.

See Also