Insert procedure
Prototype: |
procedure Insert(Index :integer; const S :string); |
|
Description: |
Insert procedure inserts a string on the index position in the StringList. |
|
Syntax: |
StringList.Insert(Index, String); |
|
Part |
Description |
|
StringList |
A reference to an instance of a TStringListWrapper |
|
Index |
An integer parameter represents index position in the StringList |
|
String |
A string parameter to be insert |
|
Return value: |
none |
|
Example:
var
strList1 : TStringListWrapper;
t : string;
begin
strList1 := CreateStringList;
strList1.BeginUpdate;
strList1.Add('Picea');
strList1.Add('Fagus');
strList1.Add('Pinus');
strList1.Add('Larix');
strList1.Add('Pinus');
strList1.Add('Abies');
strList1.EndUpdate;
strList1.Insert(1, 'Ulmus');
t:= strList1.Text;
ShowMsg(t);
strList1.Free;
end.
Output in Field-Map Data Collector:
![]()
See also:
Free; Duplicates; Sorted; CaseSensitive; BeginUpdate; EndUpdate; Add; AddStrings; Assign; Clear; Delete; Count; Exchange; Move; Find; IndexOf; Insert; Sort; LoadFromFile; SaveToFile; Strings; Text; Delimiter; DelimitedText; NameValueSeparator; IndexOfName; Name; Value; AsVarArray
© 2024 IFER-Monitoring and Mapping Solutions