System.Classes.TStrings.InsertObject

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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

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 TStrings

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