lbSort: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 6: Line 6:
|1.08|= Game version
|1.08|= Game version


|arg= local |= Arguments in MP
|eff= local |= Effects in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sorts listbox entries alphabetically ascending by their text.  
| Sorts listbox entries alphabetically ascending by their [[lbText]].  
<br>Alternative syntax (available since {{arma3}} v1.18) allows descending sorting as well.
<br>Alternative syntax (available since {{arma3}} v1.18) allows descending sorting as well.
<br>Order could be:
<br>Order could be:
Line 38: Line 35:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSortByValue]], [[lbText]], [[lbValue]] |= See also
| [[lbSortByValue]], [[lnbSort]], [[tvSort]], [[lbSortByValue]], [[lnbSortByValue]], [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSortByValue]], [[lbText]], [[lbValue]] |= See also


}}
}}

Revision as of 14:29, 27 January 2017

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

Description

Description:
Sorts listbox entries alphabetically ascending by their lbText.
Alternative syntax (available since Arma 3 v1.18) 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:
lbSortByValuelnbSorttvSortlbSortByValuelnbSortByValuelbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortByValuelbTextlbValue

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

Posted: Sep 10 2014
ffur2007slx2_5
More information on the LB command family can be found here

Bottom Section