Sign in Join
FPDoc Onlineexperiment

TFPSList.Items property

Member of TFPSListpublicIn unit fgl

Items in the list.

Declaration

pascal
property Items[Index: Integer]: Pointer read Get write Put; 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 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.