Delete procedure
Prototype: |
procedure Delete(Index :integer); |
|
Description: |
Delete procedure deletes an integer on the Index position. |
|
Syntax: |
IntegerList.Delete(Index); |
|
Part |
Description |
|
IntegerList |
A reference to an instance of a TIntegerListWrapper |
|
Index |
An integer parameter represents index position in the IntegerList |
|
Return value: |
none |
|
Example:
var
intList : TIntegerListWrapper;
v, i : integer;
begin
intList := CreateIntegerList;
intList.Add(2);
intList.Add(4);
intList.Add(8);
intList.Delete(1); // this line delete value on the 1 index position
for i:= 0 to (intList.Count - 1) do
begin
ShowMessage(IntToStr(intList.Value[i]));
end;
intList.Free;
end.
Output in Field-Map Data Collector:


See also:
Free; Add; Clear; Assign; Delete; Count; IndexOf; SortAscending; SortDescending; SortAscendingAndRemoveDuplicates; Value; Delimiter; DelimitedText; AsVarArray
© 2024 IFER-Monitoring and Mapping Solutions