lbSort: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "") |
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= ") |
||
Line 20: | Line 20: | ||
|descr= Sorts listbox entries alphabetically ascending by their [[lbText]]. | |descr= Sorts listbox entries alphabetically ascending by their [[lbText]]. | ||
|s1= | |s1= [[lbSort]] control | ||
|p1= | |p1= control: [[Control]] | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
Line 28: | Line 28: | ||
|s2= [[lbSort]] [control, sortOrder] {{Since|arma3|1.18|y}} | |s2= [[lbSort]] [control, sortOrder] {{Since|arma3|1.18|y}} | ||
|p21= | |p21= control: [[Control]] | ||
|p22= | |p22= sortOrder: [[String]] - "ASC": ascending, "DESC": descending | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
Line 35: | Line 35: | ||
|s3= [[lbSort]] idc {{Since|arma3|1.67|y}} | |s3= [[lbSort]] idc {{Since|arma3|1.67|y}} | ||
|p41= | |p41= idc: [[Number]] | ||
|r3= [[Nothing]] | |r3= [[Nothing]] | ||
Line 41: | Line 41: | ||
|s4= [[lbSort]] [idc, sortOrder] {{Since|arma3|1.67|y}} | |s4= [[lbSort]] [idc, sortOrder] {{Since|arma3|1.67|y}} | ||
|p61= | |p61= idc: [[Number]] | ||
|p62= | |p62= sortOrder: [[String]] - "ASC": ascending, "DESC": descending | ||
|r4= [[Nothing]] | |r4= [[Nothing]] |
Revision as of 22:20, 19 June 2021
Description
- Description:
- Sorts listbox entries alphabetically ascending by their lbText.
- Groups:
- GUI Control - ListBox
Syntax 1
Syntax 2
- Syntax:
- lbSort [control, sortOrder] Template:Since
- Parameters:
- control: Control
- sortOrder: String - "ASC": ascending, "DESC": descending
- Return Value:
- Nothing
Syntax 3
- Syntax:
- lbSort idc Template:Since
- Parameters:
- idc: Number
- Return Value:
- Nothing
Syntax 4
- Syntax:
- lbSort [idc, sortOrder] Template:Since
- Parameters:
- idc: Number
- sortOrder: String - "ASC": ascending, "DESC": descending
- Return Value:
- Nothing
Examples
- Example 1:
lbSort _myControl;
- Example 2:
lbSort [_myControl, "DESC"];
- Example 3:
lbSort 101;
- Example 4:
lbSort [101, "DESC"];
Additional Information
- See also:
- lbSortBylnbSortBylbSortByValuelnbSorttvSortlbSortByValuetvSortByValuelnbSortByValuelbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbTextlbValue
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
- Posted: Sep 10 2014
- ffur2007slx2_5
- More information on the LB command family can be found on the List Box page.
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