lbSort: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
|arma1 | |arma1 | ||
|1.08 | |1.08 | ||
|gr1= GUI Control - ListBox | |gr1= GUI Control - ListBox | ||
| Sorts listbox entries alphabetically ascending by their [[lbText]]. | | Sorts listbox entries alphabetically ascending by their [[lbText]]. | ||
| [[lbSort]] control | | [[lbSort]] control | ||
|p1= control: [[Control]] | |p1= control: [[Control]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|s2= [[lbSort]] [control, sortOrder] {{Since|arma3|1.18|y}} | |s2= [[lbSort]] [control, sortOrder] {{Since|arma3|1.18|y}} | ||
|p21= control: [[Control]] |PARAMETER21= | |p21= control: [[Control]] |PARAMETER21= | ||
|p22= sortOrder: [[String]] - "ASC": ascending, "DESC": descending|PARAMETER22= | |p22= sortOrder: [[String]] - "ASC": ascending, "DESC": descending|PARAMETER22= | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|s3= [[lbSort]] idc {{Since|arma3|1.67|y}} | |s3= [[lbSort]] idc {{Since|arma3|1.67|y}} | ||
|p41= idc: [[Number]] |PARAMETER41= | |p41= idc: [[Number]] |PARAMETER41= | ||
|r3= [[Nothing]] | |r3= [[Nothing]] | ||
|s4= [[lbSort]] [idc, sortOrder] {{Since|arma3|1.67|y}} | |s4= [[lbSort]] [idc, sortOrder] {{Since|arma3|1.67|y}} | ||
|p61= idc: [[Number]] |PARAMETER61= | |p61= idc: [[Number]] |PARAMETER61= | ||
Line 34: | Line 34: | ||
|p62= sortOrder: [[String]] - "ASC": ascending, "DESC": descending |PARAMETER62= | |p62= sortOrder: [[String]] - "ASC": ascending, "DESC": descending |PARAMETER62= | ||
|r4= [[Nothing]] | |r4= [[Nothing]] | ||
|x1= <code>[[lbSort]] _myControl;</code> | |x1= <code>[[lbSort]] _myControl;</code> | ||
|x2= <code>[[lbSort]] [_myControl, "DESC"];</code> | |x2= <code>[[lbSort]] [_myControl, "DESC"];</code> | ||
|x3= <code>[[lbSort]] 101;</code> | |x3= <code>[[lbSort]] 101;</code> | ||
|x4= <code>[[lbSort]] [101, "DESC"];</code> | |x4= <code>[[lbSort]] [101, "DESC"];</code> | ||
| [[lbSortByValue]], [[lnbSort]], [[tvSort]], [[lbSortByValue]], [[tvSortByValue]], [[lnbSortByValue]], [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbText]], [[lbValue]] | | [[lbSortByValue]], [[lnbSort]], [[tvSort]], [[lbSortByValue]], [[tvSortByValue]], [[lnbSortByValue]], [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbText]], [[lbValue]] | ||
}} | }} | ||
Revision as of 01:05, 18 January 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:
- lbSortByValuelnbSorttvSortlbSortByValuetvSortByValuelnbSortByValuelbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbTextlbValue
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
- Posted: Sep 10 2014
- ffur2007slx2_5
- More information on the LB command family can be found on the List Box page.