Sign in Join
FPDoc Onlineexperiment

TStringList.AddObject function

Member of TStringListpublicIn unit Classes

Declaration

pascal
function AddObject(const S: string; AObject: TObject): Integer
 ; override

Description

Not described here; this is what TStrings.AddObject says of it:

Add a string and associated object to the list.

AddObject adds S to the list of strings, and associates AObject with it. It returns the index of S.

An object added to the list is not automatically destroyed by the list when the list is destroyed or the string it is associated with is deleted. It is the responsibility of the application to destroy any objects associated with strings.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.