Sign in Join
FPDoc Onlineexperiment

TStrings.InsertObject procedure

Member of TStringspublicIn unit Classes

Insert a string and associated object in the list.

Declaration

pascal
procedure InsertObject(Index: Integer; const S: string; 
 AObject: TObject); virtual

Description

InsertObject inserts the string S and its associated object AObject 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.

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.