TStrings.Insert procedure
Insert a string in the list.
Declaration
procedure Insert(Index: Integer; const S: string); virtual; abstractDescription
Insert inserts the string
S at position
Index in the list.
Index is a zero-based position,
and can have values from
0 to
Count. If
Index equals
Count then the string is appended to the
list.
- All methods that add strings to the list use
Insertto add a string to the list. - If the string has an associated object, use InsertObject instead.
Errors
If
Index is less than zero or larger than
Count then
an
EStringListError exception is raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
