ISortedList.GetKeyList

Syntax

GetKeyList: IList;

Description

The GetKeyList method returns an object that contains a list of array keys.

Example

Sub Main;

Var

SortList: ISortedList;

KeyList: IList;

i: Integer;

Begin

SortList:=New SortedList.Create;

For i:=0 To Math.RandBetweenI(50,100) Do

SortList.Add("Key_"+Math.RandBetweenI(0,100).ToString,"Number "+Math.RandBetweenI(0,100).ToString);

End For;

KeyList:=SortList.GetKeyList;

End Sub Main;

After executing the example the KeyList variable contains a list of array keys.

See also:

ISortedList