lbSortByValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
(Extended Description and added a Workaround-Tip)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sorts listbox entries by value. |= Description
| Sorts the Listbox Entries by their assigned Values.
 
Also note that this Command will mix up the Entries randomly, if more than one Entries have the same Value. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 17: Line 19:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>lbSortByValue _control12</code>|= Example 1
|x1= <code>lbSortByValue _control</code>|= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 28: Line 30:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


<dd class="notedate">January 1st, 2011 - 22:54</dd>
<dt class="note">'''[[User:roehre|Roehre]]'''</dt>
<dd class="note">
A good way to avoid that this Command will mix up your Listbox Entries is, to assign your Value summed up with the Index ID returned by [[lbAdd]] to your Listbox.
</dd>


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 23:03, 1 January 2011

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

Description

Description:
Sorts the Listbox Entries by their assigned Values. Also note that this Command will mix up the Entries randomly, if more than one Entries have the same Value.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
lbSortByValue _control

Additional Information

See also:
lbSetValuelbSort

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

January 1st, 2011 - 22:54
Roehre
A good way to avoid that this Command will mix up your Listbox Entries is, to assign your Value summed up with the Index ID returned by lbAdd to your Listbox.

Bottom Section