lbSortByValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
Lou Montana (talk | contribs) m (Text replacement - " |game2= arma2 |version2= 1.00 |game3= arma2oa |version3= 1.51" to " |game2= arma2 |version2= 1.00 |game3= arma2oa |version3= 1.50") |
||
Line 8: | Line 8: | ||
|game3= arma2oa | |game3= arma2oa | ||
|version3= 1. | |version3= 1.50 | ||
|game4= tkoh | |game4= tkoh |
Revision as of 17:33, 20 June 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. 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
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.08
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: GUI Control - ListBox