[Overview][Types][Classes][Index] Reference for unit 'ExtendedStrings' (#lazutils)

TExtendedStringList.PutObject

Reimplements the write access specifier for the Objects property.

Declaration

Source position: extendedstrings.pas line 49

protected procedure TExtendedStringList.PutObject(

  Index: Integer;

  AnObject: TObject

); override;

Arguments

Index

  

Ordinal position for value.

AnObject

  

Object to store at the specified position.

Description

PutObject is an overridden procedure which reimplements the write access specifier for the Objects property. PutObject uses a pointer to the value in Records stored at the position in Index. If a record has not been stored at the position, CreateRecord is called to allocate and initialize the memory for the record. The value in AnObject is stored in Records at the position in Index.

GetObject and PutObject are called directly (as opposed to using the Objects property) in methods which maintain values in Records.

See also

TStringList


Version 4.0 Generated 2025-05-03 Home