lbSort

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Armed Assault version 1.08
  

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.08

Description

Description:
Sorts listbox entries alphabetically ascending by their lbText

Syntax

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

Alternative Syntax

Syntax:
lbSort [control, sortOrder]        (since Arma 3 v1.18)
Parameters:
control: Control
sortOrder: String - "ASC": ascending, "DESC": descending
Return Value:
Nothing

Alternative Syntax 2

Syntax:
lbSort idc        (since Arma 3 v1.67)
Parameters:
idc: Number
Return Value:
Nothing

Alternative Syntax 3

Syntax:
lbSort [idc, sortOrder]        (since Arma 3 v1.67)
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

Multiplayer:
-
See also:
lbSortByValuelnbSorttvSortlbSortByValuetvSortByValuelnbSortByValuelbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbTextlbValue

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

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

Bottom Section