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

TStringList.Insert

Overrides the TStrings.Insertmethod.

Declaration

Source position: classesh.inc line 572

public procedure TStringList.Insert(

  Index: Integer;

  const S: String

); override;

Description

Insertwill insert the string Sat position Indexin the list. If the list is sorted, an EStringListErrorexception will be raised instead. Indexis a zero-based position.

Errors

If Indexcontains an invalid value (less than zero or larger than Count, or the list is sorted, an EStringListErrorexception will be raised.

See also

TStringList.Add

  

Implements the TStrings.Addfunction.

TStrings.Insert

  

Insert a string in the list.

TStringList.InsertObject