Sign in Join
FPDoc Onlineexperiment

TCollection.SetItem procedure

Member of TCollectionprotectedIn unit Classes

Write handler for the Items property.

Declaration

pascal
procedure SetItem(Index: Integer; Value: TCollectionItem)

Description

SetItem implements the write handler for the Items property. It assigns Value to the Index-th element in the array. For this to work properly, the Assign method of the Item must work correctly.

Errors

If Index is outside the allowed range, then an EListError exception is raised.

See also

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