lbSort: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{since" to "{{Since") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
|arma1|Game name= | |arma1|Game name= | ||
Line 7: | Line 6: | ||
|gr1= GUI Control - ListBox |GROUP1= | |gr1= GUI Control - ListBox |GROUP1= | ||
| Sorts listbox entries alphabetically ascending by their [[lbText]]. |DESCRIPTION= | | Sorts listbox entries alphabetically ascending by their [[lbText]]. |DESCRIPTION= | ||
| [[lbSort]] control |SYNTAX= | | [[lbSort]] control |SYNTAX= | ||
Line 17: | Line 14: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|s2= [[lbSort]] [control, sortOrder] {{Since|arma3|1.18|y}} |SYNTAX2= | |s2= [[lbSort]] [control, sortOrder] {{Since|arma3|1.18|y}} |SYNTAX2= | ||
Line 25: | Line 21: | ||
|r2= [[Nothing]] |RETURNVALUE2= | |r2= [[Nothing]] |RETURNVALUE2= | ||
|s3= [[lbSort]] idc {{Since|arma3|1.67|y}} |SYNTAX3= | |s3= [[lbSort]] idc {{Since|arma3|1.67|y}} |SYNTAX3= | ||
Line 32: | Line 27: | ||
|r3= [[Nothing]] |RETURNVALUE3= | |r3= [[Nothing]] |RETURNVALUE3= | ||
|s4= [[lbSort]] [idc, sortOrder] {{Since|arma3|1.67|y}} |SYNTAX4= | |s4= [[lbSort]] [idc, sortOrder] {{Since|arma3|1.67|y}} |SYNTAX4= | ||
Line 41: | Line 35: | ||
|r4= [[Nothing]] |RETURNVALUE4= | |r4= [[Nothing]] |RETURNVALUE4= | ||
|x1= <code>[[lbSort]] _myControl;</code>|EXAMPLE1= | |x1= <code>[[lbSort]] _myControl;</code>|EXAMPLE1= | ||
Line 47: | Line 40: | ||
|x3= <code>[[lbSort]] 101;</code>|EXAMPLE3= | |x3= <code>[[lbSort]] 101;</code>|EXAMPLE3= | ||
|x4= <code>[[lbSort]] [101, "DESC"];</code>|EXAMPLE4= | |x4= <code>[[lbSort]] [101, "DESC"];</code>|EXAMPLE4= | ||
| [[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]] |SEEALSO= | | [[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]] |SEEALSO= |
Revision as of 01:55, 17 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.