The sorted list object is used to contain a list that is somehow sorted alphabetically.
Sample of creating a list
1 | Public shared Function WhichColumns2SortedList (whichColumns As String) _ |
This function will take a string (something like A|Hello;Z|ZHello;C|Common Data) and split it by semicolons. (In our example into 3 pieces). Then it will take those splits and turn each one of those into pieces. (in the first one there will be A and Hello). An object is created of type si.Ui_Lv_ColSpec. It’s initialized with the original piece (ex A|Hello). Then the object, and the first part of the object (A in the A|Hello) will be added to the sorted list.
The result is a sorted list. That list will be sorted by the first argument of the add method.
To step through the list you would do something like this
1 | for each de as KeyValuePair(of double, si.Ui_Lv_ColSpec) In ColumnsToGenerate |
If you did started off with an input string of (A|Hello;Z|ZHello;C|Common Data) the output of this would be:
- Hello
- Common Data
- ZHello