Show: Delphi C++
Display Preferences

System.Classes.TStringList.InsertObject

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure InsertObject(Index: Integer; const S: string;  AObject: TObject); override;

C++

virtual void __fastcall InsertObject(int Index, const System::UnicodeString S, System::TObject* AObject);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TStringList

Description

Inserts a string into the list at the specified position, and associates it with an object.

Call InsertObject to insert the string S into the list at the position identified by Index, and associate it with the object AObject. If Index is 0, the string is inserted at the beginning of the list. If Index is 1, the string is put in the second position of the list, and so on.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance