lbSort: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{since" to "{{Since")
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

Hover & click on the images for description

Description

Description:
Sorts listbox entries alphabetically ascending by their lbText.
Groups:
GUI Control - ListBox

Syntax 1

Syntax:
lbSort control
Parameters:
control: Control
Return Value:
Nothing

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.

Bottom Section