Sign in Join
FPDoc Onlineexperiment

TStrings.PutObject procedure

Member of TStringsprotectedIn unit Classes

Write handler for the Objects property.

Declaration

pascal
procedure PutObject(Index: Integer; AObject: TObject); virtual

Description

PutObject is the write handler for the Objects property. The TStrings implementation of PutObject does nothing.

Descendant objects that should support Object storage must override this method to store the AObject so that it is associated with the Index-th string in the list. Index should have a value between 0 and Count-1. If the value of Index is out of range, an error should be raised using Error.

See also

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