System.WideStrings.TWideStrings.AddObject

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AddObject(const S: WideString; AObject: TObject): Integer; virtual;

C++

virtual int __fastcall AddObject(const System::WideString S, System::TObject* AObject);

Properties

Type Visibility Source Unit Parent
function public
System.WideStrings.pas
System.WideStrings.hpp
System.WideStrings TWideStrings

Description

Adds a string to the list, and associates an object with the string.

Call AddObject to add a string and its associated object to the list. AddObject returns the index of the new string and object.

Note: The TWideStrings object does not own the objects you add this way. Objects added to the TWideStrings object still exist even if the TWideStrings instance is destroyed. They must be explicitly destroyed by the application.

See Also