lbSortByValue

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 the ListBox entries by lbValue. The entries are sorted in ascending order. Also note that this command will mix up the entries randomly if multiple entries have the same value.

Syntax

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

Alternative Syntax

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

Examples

Example 1:
lbSortByValue _control;
Example 2:
lbSortByValue 101;

Additional Information

Multiplayer:
-
See also:
lbSortlnbSorttvSorttvSortByValuelnbSortByValuelbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortlbTextlbValue

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

January 1st, 2011 - 22:54
Roehre
A good way to avoid that this Command will mix your Listbox up is, to assign your Value summed up with the Index ID returned by lbAdd to your Listbox Entries.
Posted: Sep 10 2014
ffur2007slx2_5
More information on the LB command family can be found here

Bottom Section