lbSortByValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(formatting)
m (Text replacement - "<dl class="command_description"> <dt></dt>" to "<dl class="command_description"> <dt></dt>")
Line 45: Line 45:


<dl class="command_description">
<dl class="command_description">
<dt></dt>
<dt></dt>
<dd class="notedate">January 1st, 2011 - 22:54
<dd class="notedate">January 1st, 2011 - 22:54

Revision as of 14:38, 12 June 2021

Hover & click on the images for description

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. In Arma 3 use lbSortBy to avoid this problem.
Groups:
GUI Control - ListBox

Syntax

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

Alternative Syntax

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

Examples

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

Additional Information

See also:
lbSortBy lbSort

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
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