System.Classes.TStrings.Insert

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure Insert(Index: Integer; const S: string); virtual; abstract;

C++

virtual void __fastcall Insert(int Index, const System::UnicodeString S) = 0 ;

Properties

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

Description

Introduces abstract (Object Pascal) or pure virtual (C++) method to insert a string at a specified position.

Descendants of TStrings implement an Insert method to add the string S to the list at the position specified by Index. 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.

All methods that add strings to the list use the Insert method to add the string.

If the string has an associated object, use the InsertObject method instead.

See Also