Item(Key: Variant): Variant;
Key - element key.
The Item property determines the meaning of the glossary element, which key is passed by the Key parameter.
Sub Main;
Var
Hast: IHashtable;
Dict: IDictionary;
i: Integer;
v: Variant;
Begin
Hast:=New Hashtable.Create;
Dict:=Hast As IDictionary;
For i:=0 To 100 Do
Dict.Add(i,Math.RandBetween(0,100));
End For;
v:=Dict.Item(10);
End Sub Main;
After executing the example the glossary is created, and the "v" variable contains the value of the element with the 10 key.
See also: