TStringList.Insert

Overrides the TStrings.Insert method.

Declaration

Source position: classesh.inc line 861

public 
  procedure Insert(Index: Integer; const S: string);  Override;

Description

Insert will insert the string S at position Index in the list. If the list is sorted, an EStringListError exception will be raised instead. Index is a zero-based position.

Errors

If Index contains an invalid value (less than zero or larger than Count, or the list is sorted, an EStringListError exception will be raised.

See also

Name Description
TStringList.Add Implements the TStrings.Add function.
TStrings.Insert Insert a string in the list.
TStrings.InsertObject Insert a string and associated object in the list.