Skip to content

TFPSList.Items

Items in the list

Declaration

Source position: fgl.pp line 95

public Property
  Items[Index: Integer]: Pointer; default;

Description

Items provides indexed access to the items in the list, the returned pointers are not the actual list items, but pointers to the elements in the list. The items can be get or set.

When assigning to the Items property, the memory area pointed to by the assigned pointer is copied to the list. Exactly TFPSList.ItemSize bytes are copied.

The index Index is zero based, and has a maximum value of Count-1 .

Errors

If an invalid index is used, an EListError exception is raised.

See also

Name Description
TFPSList.Count Current element count
TFPSList.ItemSize Size of the items in the list