lbSortByValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(alt syntax)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sorts the Listbox Entries by their assigned Values.
| 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. |= Description
<br>
The Entries getting listed by their Negativity (most negative Value on Top).
<br>
Also note that this Command will mix up the Entries randomly if multiple Entries have the same Value. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''lbSortByValue''' control |= Syntax
| '''lbSortByValue''' control |= Syntax
|p1= control: [[Control]] -Given Control |= Parameter 1
|p1= control: [[Control]] |= Parameter 1
| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
| s2= '''lbSortByValue''' idc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (''since Arma 3 v1.67'') |= Syntax
|p21= idc: [[Number]]  |= Parameter 1
| r2= [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[[lbSortByValue]] _control;</code>|= Example 1
|x1= <code>[[lbSortByValue]] _control;</code>|= Example 1
|x2= <code>[[lbSortByValue]] 101;</code>|= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[lbSort]], [[lnbSort]], [[tvSort]], [[tvSortByValue]], [[lnbSortByValue]], [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbText]], [[lbValue]] |= See also
| [[lbSort]], [[lnbSort]], [[tvSort]], [[tvSortByValue]], [[lnbSortByValue]], [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbText]], [[lbValue]] |= See also


}}
}}

Revision as of 19:34, 6 February 2017

-wrong parameter ("Arma") defined!-1.08
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.
Groups:
Uncategorised

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

See also:
lbSortlnbSorttvSorttvSortByValuelnbSortByValuelbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortlbTextlbValue

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