Sign in Join
FPDoc Onlineexperiment

TStrings.GetObject function

Member of TStringsprotectedIn unit Classes

Abstract read handler for the Objects property.

Declaration

pascal
function GetObject(Index: Integer): TObject; virtual

Description

GetObject is the read handler for the Objects property. The TStrings implementation of this method ignores the Index argument and simply returns Nil.

Descendant classes that should support object storage should override this method and return the object associated to the Index-th string in the list. Index should have a value between 0 and Count-1. If Index is outside the allowed range, an error should be raised using Error.

See also

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