Move procedure
Prototype: |
procedure Move(CurIndex, NewIndex :integer); |
|
Description: |
Move procedure moves a string from current index to the new index position. |
|
Syntax: |
StringList.Move(CurIndex, NewIndex); |
|
Part |
Description |
|
StringList |
A reference to an instance of a TStringListWrapper |
|
CurIndex |
An integer parameter represents the current index position in the StringList |
|
NewIndex |
An integer parameter represents the new index position in the StringList. At this position will be moved a string from current index |
|
Return value: |
none |
|
Example:
var
strList1 : TStringListWrapper;
t : string;
begin
strList1 := CreateStringList;
strList1.BeginUpdate;
strList1.Add('Picea');
strList1.Add('Fagus'); // this one will be it moved
strList1.Add('Pinus');
strList1.Add('Larix'); // this one will be it moved
strList1.Add('Abies');
strList1.EndUpdate;
strList1.Move(1,3);
t:= strList1.Text;
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