ISortedList.GetKeyList

Syntax

GetKeyList: IList;

Description

The GetKeyList method returns the list of array keys.

Example

Sub UserProc;
Var
    SortList: ISortedList;
    KeyList: IList;
    i: Integer;
Begin
    SortList := New SortedList.Create;
    For i := 0 To Math.RandBetweenI(50100Do
        SortList.Add("Key_" + Math.RandBetweenI(0100).ToString, "Number " + Math.RandBetweenI(0100).ToString);
    End For;
    KeyList := SortList.GetKeyList;
End Sub UserProc;

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

See also:

ISortedList