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

TStrings.Put

Write handler for the TStrings.Strings property.

Declaration

Source position: classesh.inc line 582

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 the strings in the list.

TStrings.Get

  

Abstract read handler for the TStrings.Strings property.

TStrings.PutObject

  

Write handler for the TStrings.Objects property.

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