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

# TStrings.PutObject

Write handler for the TStrings.Objects property.

## Declaration

`protected procedure TStrings.PutObject(`
`Index: Integer;`
`AObject: TObject`
`); virtual;`

## Description

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

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

## See also

TStrings.Objects |  | Indexed access to the objects associated with the strings in the list.
TStrings.GetObject |  | Abstract read handler for the TStrings.Objects property.
TStrings.Put |  | Write handler for the TStrings.Strings property.