lbSort: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(formatting)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sorts listbox entries alphabetically ascending by their text. Second version of the command allows descending sorting as well. Order could be:
| Sorts listbox entries alphabetically ascending by their text.  
<br>Alternative syntax allows descending sorting as well.
<br>Order could be:
* "ASC"
* "ASC"
* "DESC"
* "DESC"
Line 13: Line 15:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''lbSort''' control<br />'''lbSort''' [control, sortOrder] |= Syntax
| '''lbSort''' control |= Syntax


|p1=  control: [[Control]] |= Parameter 1
|p1=  control: [[Control]] |= Parameter 1
|p2=  sortOrder: [[String]]|= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
|s2= '''lbSort''' [control, sortOrder] |= Syntax
|p21=  control: [[Control]] |= Parameter 1
|p22=  sortOrder: [[String]] - see Description|= Parameter 2
|r2= [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   

Revision as of 13:00, 18 April 2014

-wrong parameter ("Arma") defined!-1.08
Hover & click on the images for description

Description

Description:
Sorts listbox entries alphabetically ascending by their text.
Alternative syntax allows descending sorting as well.
Order could be:
  • "ASC"
  • "DESC"
Groups:
Uncategorised

Syntax

Syntax:
lbSort control
Parameters:
control: Control
Return Value:
Nothing

Alternative Syntax

Syntax:
lbSort [control, sortOrder]
Parameters:
control: Control
sortOrder: String - see Description
Return Value:
Nothing

Examples

Example 1:
lbSort _myControl;
Example 2:
lbSort [_myControl, "DESC"];

Additional Information

See also:
lbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortByValuelbTextlbValue

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

Notes

Bottom Section