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

# TStrings.GetObject

Abstract read handler for the TStrings.Objects property.

## Declaration

`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.