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

TStrings.Put

Write handler for the TStrings.Strings property.

Declaration

protected procedure TStrings.Put(

  Index: Integer;

  const S: String

); virtual;

Description

Put is the write handler for the TStrings.Strings property. It does this by saving the object associated to the Index-th string, deleting the Index-th string, and inserting S and the saved object at position Index with TStrings.InsertObject

Descendent classes may wish to override Put to implement a more efficient method.

See also

TStrings.Strings

  

Indexed access to teh strings in the list.

TStrings.Get

  

Abstract read handler for the TStrings.Strings property.

TStrings.PutObject

  

Write handler for the TStrings.Objects property.