help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

TStrings.Insert

Insert a string in the list.

Declaration

Source position: classesh.inc line 502

public procedure TStrings.Insert(

  Index: Integer;

  const S: String

); virtual; abstract;

Description

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.

Remark:
  1. All methods that add strings to the list use Insert to add a string to the list.
  2. If the string has an associated object, use TStrings.InsertObject instead.

Errors

If Index is less than zero or larger than Count then an EStringListError exception is raised.

See also

TStrings.Add

  

Add a string to the list

TStrings.InsertObject

  

Insert a string and associated object in the list.

TStrings.Append

  

Add a string to the list.

TStrings.Delete

  

Delete a string from the list.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505