[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TStrings.GetObject

Abstract read handler for the TStrings.Objects property.

Declaration

Source position: classesh.inc line 580

protected function TStrings.GetObject(

  Index: Integer

):TObject; virtual;

Description

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

Descendent 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 TStrings.Error.

See also

TStrings.Objects

  

Indexed access to the objects associated with the strings in the list.

TStrings.PutObject

  

Write handler for the TStrings.Objects property.

TStrings.Get

  

Abstract read handler for the TStrings.Strings property.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.