TFPSList.Add function
Add a new item to the list.
Declaration
function Add(Item: Pointer): IntegerArguments
Item | Pointer to the item to be added. |
Function result
The index at which the item was added.
Description
Add adds the item pointed to by
Item to the list.
It is not the pointer
Item itself which is added to the list, but
rather the
ItemSize bytes of memory to which
Item is
pointing.
The function returns the index of the newly added item.
Errors
If the maximum list size is reached, an EListError is raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
