lbSortBy
Jump to navigation
Jump to search
Description
- Description:
- Description needed
- Groups:
- GUI Control - ListBox
Syntax
- Syntax:
- Syntax needed
- Parameters:
- controlOrIDC: Control or Number - the ListBox control or its IDC
- [sortByType, reversedOrder, caseSensitive]: Array
- sortByType (Optional): String - one of "TEXT", "VALUE" or "DATA". Default: "TEXT"
- reversedOrder (Optional): Boolean - true for sorting in reversed order. Default: false
- caseSensitive (Optional): Boolean - true for using case-sensitive comparison. Default: false
- Return Value:
- Return value needed
Examples
- Example 1:
with uiNamespace do { lb = findDisplay 46 createDisplay "RscDisplayEmpty" ctrlCreate ["RscListBox", -1]; lb ctrlSetPosition [0,0,1,1]; lb ctrlCommit 0; lbClear lb; { lb lbAdd (_x select 0); lb lbSetValue [_forEachIndex, _x select 1]; } forEach [["В",1],["Я",0],["Б",1],["Ю",0],["А",1]]; lb lbSortBy ["VALUE", false, false]; };
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note