stringlistcontainer Insert method
Return to Introduction  Previous page  Next page
Applies to
acStringListContainer component.  

Declaration
procedure Insert(Index: Integer; const S: String);  

Description
The Insert method inserts a string to the list at the position specified by Index.  
 
Call Insert to add the string S to the list at the position specified by Index. If Index is 0, the string is inserted at the beginning of the list. If Index is 1, the string is put in the second position of the list, and so on ("Count - 1" is the position of last string in the list).  

See also
Add and AddStrings methods;  
Duplicates and MaxSize properties;  
OnChange event.