List Collection - Last Property

Last is the Last item in a collection

Member of List Collection (PRIM_LCOL)

Data Type - PRIM_OBJT - Base object, use it as the ancestor of components which are not visualized

Details

Reference to the last item in the collection

Example

Setting the caption of the last item in a collection of buttons
#Buttons.Last.Caption := #NewCaption
This is the equivalent of writing
#Buttons<#Buttons.ItemCount>.Caption := #NewCaption

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2