lbSort: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *s([0-9]) *=([^ ]+) *\{\{Since\|(.+)\|([0-9]\.[0-9]7)[^ ]+\}\} " to "|s$1= $2 |s$1since= $3 $4THEINCREDIBLEHULK8 ") |
Lou Montana (talk | contribs) m (Text replacement - "[0-9]THEINCREDIBLEHULK" to "") |
||
Line 37: | Line 37: | ||
|s3= [[lbSort]] idc | |s3= [[lbSort]] idc | ||
|s3since= arma3 1. | |s3since= arma3 1.68 | ||
|p41= idc: [[Number]] | |p41= idc: [[Number]] | ||
Line 45: | Line 45: | ||
|s4= [[lbSort]] [idc, sortOrder] | |s4= [[lbSort]] [idc, sortOrder] | ||
|s4since= arma3 1. | |s4since= arma3 1.68 | ||
|p61= idc: [[Number]] | |p61= idc: [[Number]] |
Revision as of 23:07, 10 August 2021
Description
- Description:
- Sorts listbox entries alphabetically ascending by their lbText.
- Groups:
- GUI Control - ListBox
Syntax 1
Syntax 2
- Syntax:
- lbSort [control, sortOrder]
- Parameters:
- control: Control
- sortOrder: String - "ASC": ascending, "DESC": descending
- Return Value:
- Nothing
Syntax 3
Syntax 4
- Syntax:
- lbSort [idc, sortOrder]
- 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