Name property
Prototype: |
property Name[Index :integer] :string; |
|
Description: |
Returns the name of the StringList on the index position. |
|
Syntax: |
variable := StringList.Name[Index]; Set,, Get |
|
Part |
Description |
|
variable |
A variable declared as a string |
|
StringList |
A reference to an instance of a TStringListWrapper |
|
Return value: |
the name of a StringList as a string |
|
Example:
var
strList1 : TStringListWrapper;
t, s : string;
i : integer;
begin
strList1 := CreateStringList;
strList1.BeginUpdate;
strList1.BeginUpdate;
strList1.Add('Picea=1');
strList1.Add('Fagus=20');
strList1.Add('Pinus=31');
strList1.Add('Larix=47');
strList1.Add('Abies=5');
strList1.EndUpdate;
s:= strList1.Name[2];
t:= strList1.Text;
ShowMsg('Name at the index 2 is ' + s);
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