lbSortByValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<dl class="command_description"> <dt></dt>" to "<dl class="command_description"> <dt></dt>") |
Lou Montana (talk | contribs) m (Text replacement - "[Rr]oehre" to "RoehrenRadio") |
||
(8 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|game1= arma1 | |game1= arma1 | ||
|version1= 1.08 | |version1= 1.08 | ||
|game2= arma2 | |game2= arma2 | ||
|version2= 1.00 | |version2= 1.00 | ||
|game3= arma2oa | |game3= arma2oa | ||
|version3= 1.50 | |||
|version3= 1. | |||
|game4= tkoh | |game4= tkoh | ||
|version4= 1.00 | |version4= 1.00 | ||
|game5= arma3 | |game5= arma3 | ||
|version5= 0.50 | |version5= 0.50 | ||
Line 25: | Line 20: | ||
|descr= 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 {{arma3}} use [[lbSortBy]] to avoid this problem. | |descr= 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 {{arma3}} use [[lbSortBy]] to avoid this problem. | ||
|s1= | |s1= [[lbSortByValue]] control | ||
|p1= control: [[Control]] | |p1= control: [[Control]] | ||
Line 31: | Line 26: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|s2= | |s2= [[lbSortByValue]] idc | ||
|s2since= arma3 1.68 | |||
|p21= idc: [[Number]] | |p21= idc: [[Number]] | ||
Line 37: | Line 34: | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= < | |x1= <sqf>lbSortByValue _control;</sqf> | ||
|x2= < | |x2= <sqf>lbSortByValue 101;</sqf> | ||
|seealso= [[lbSortBy]] [[lbSort]] | |seealso= [[lbSortBy]] [[lbSort]] | ||
Line 48: | Line 45: | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">January 1st, 2011 - 22:54 | <dd class="notedate">January 1st, 2011 - 22:54 | ||
<dt class="note">[[User: | <dt class="note">[[User:RoehrenRadio|RoehrenRadio]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
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. | 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. |
Latest revision as of 10:49, 8 April 2024
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
- 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
- RoehrenRadio
- 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