help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

TStrings.AddObject

Add a string and associated object to the list.

Declaration

Source position: classesh.inc line 488

public function TStrings.AddObject(

  const S: String;

  AObject: TObject

):Integer; virtual;

Description

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

Remark: An object added to the list is not automatically destroyed by the list of 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

TStrings.Add

  

Add a string to the list

Tstrings.Items

TStrings.Objects

  

Indexed access to the objects associated with the strings in the list.

Tstrings.InsertObject

  

Insert a string and associated object in the list.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505