lbSort: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "{{since" to "{{Since")
Line 19: Line 19:
____________________________________________________________________________________________
____________________________________________________________________________________________


|s2= [[lbSort]] [control, sortOrder] {{since|arma3|1.18|y}} |SYNTAX2=
|s2= [[lbSort]] [control, sortOrder] {{Since|arma3|1.18|y}} |SYNTAX2=


|p21=  control: [[Control]] |PARAMETER21=
|p21=  control: [[Control]] |PARAMETER21=
Line 27: Line 27:
____________________________________________________________________________________________
____________________________________________________________________________________________


|s3= [[lbSort]] idc {{since|arma3|1.67|y}} |SYNTAX3=
|s3= [[lbSort]] idc {{Since|arma3|1.67|y}} |SYNTAX3=


|p41=  idc: [[Number]] |PARAMETER41=
|p41=  idc: [[Number]] |PARAMETER41=
Line 34: Line 34:
____________________________________________________________________________________________
____________________________________________________________________________________________


|s4= [[lbSort]] [idc, sortOrder] {{since|arma3|1.67|y}} |SYNTAX4=
|s4= [[lbSort]] [idc, sortOrder] {{Since|arma3|1.67|y}} |SYNTAX4=


|p61=  idc: [[Number]] |PARAMETER61=
|p61=  idc: [[Number]] |PARAMETER61=

Revision as of 19:36, 11 January 2021

Hover & click on the images for description

Description

Description:
Sorts listbox entries alphabetically ascending by their lbText.
Groups:
GUI Control - ListBox

Syntax 1

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

Syntax 2

Syntax:
lbSort [control, sortOrder] Template:Since
Parameters:
control: Control
sortOrder: String - "ASC": ascending, "DESC": descending
Return Value:
Nothing

Syntax 3

Syntax:
lbSort idc Template:Since
Parameters:
idc: Number
Return Value:
Nothing

Syntax 4

Syntax:
lbSort [idc, sortOrder] Template:Since
Parameters:
idc: Number
sortOrder: String - "ASC": ascending, "DESC": descending
Return Value:
Nothing

Examples

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

Additional Information

See also:
lbSortByValuelnbSorttvSortlbSortByValuetvSortByValuelnbSortByValuelbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbTextlbValue

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 on the List Box page.

Bottom Section