lbSortByValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{since" to "{{Since") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
|arma1|Game name= | |arma1|Game name= | ||
Line 7: | Line 6: | ||
|gr1= GUI Control - ListBox |GROUP1= | |gr1= GUI Control - ListBox |GROUP1= | ||
| 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= | | 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= | ||
| '''lbSortByValue''' control |SYNTAX= | | '''lbSortByValue''' control |SYNTAX= | ||
Line 23: | Line 20: | ||
|r2= [[Nothing]] |RETURNVALUE2= | |r2= [[Nothing]] |RETURNVALUE2= | ||
|x1= <code>[[lbSortByValue]] _control;</code>|EXAMPLE1= | |x1= <code>[[lbSortByValue]] _control;</code>|EXAMPLE1= | ||
|x2= <code>[[lbSortByValue]] 101;</code>|EXAMPLE2= | |x2= <code>[[lbSortByValue]] 101;</code>|EXAMPLE2= | ||
| [[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]] |SEEALSO= | | [[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]] |SEEALSO= |
Revision as of 01:59, 17 January 2021
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:
- GUI Control - ListBox
Syntax
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:
- 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