Value property
Prototype: |
property Value[const Name: string]: variant; |
|
Description: |
Sets/returns the value of a StringList. |
|
Syntax (get value): Syntax (set value): |
variable := StringList.Value[Name]; StringList.Value[Name] := variable; |
|
Part |
Description |
|
variable |
A variable declared as a variant |
|
StringList |
A reference to an instance of a TStringListWrapper |
|
Name |
A string parameter contains name of the StringList |
|
Return value: |
the variant value of a StringList |
|
Example:
var
strList1 : TStringListWrapper;
t : string;
i : variant;
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;
i:= strList1.Value['Pinus'];
t:= strList1.Text;
ShowMsg('Value Pinus is ' + IntToStr(i));
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