TStrings.AddObject function
Add a string and associated object to the list.
Declaration
function AddObject(const S: string; AObject: TObject): Integer
; virtual; overload
function AddObject(const Fmt: string; Args: Array of const;
AObject: TObject): Integer; overloadDescription
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.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
