lbSort: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
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|Comments=
{{Command


|arma1|Game name=
|arma1


|1.08|Game version=
|1.08


|gr1= GUI Control - ListBox |GROUP1=
|gr1= GUI Control - ListBox


| Sorts listbox entries alphabetically ascending by their [[lbText]]. |DESCRIPTION=
| Sorts listbox entries alphabetically ascending by their [[lbText]].


| [[lbSort]] control |SYNTAX=
| [[lbSort]] control


|p1=  control: [[Control]] |PARAMETER1=
|p1=  control: [[Control]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


|s2= [[lbSort]] [control, sortOrder] {{Since|arma3|1.18|y}} |SYNTAX2=
|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]] |RETURNVALUE2=
|r2= [[Nothing]]


|s3= [[lbSort]] idc {{Since|arma3|1.67|y}} |SYNTAX3=
|s3= [[lbSort]] idc {{Since|arma3|1.67|y}}


|p41=  idc: [[Number]] |PARAMETER41=
|p41=  idc: [[Number]] |PARAMETER41=


|r3= [[Nothing]] |RETURNVALUE3=
|r3= [[Nothing]]


|s4= [[lbSort]] [idc, sortOrder] {{Since|arma3|1.67|y}} |SYNTAX4=
|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]] |RETURNVALUE4=
|r4= [[Nothing]]
   
   
|x1= <code>[[lbSort]] _myControl;</code>|EXAMPLE1=
|x1= <code>[[lbSort]] _myControl;</code>
|x2= <code>[[lbSort]] [_myControl, "DESC"];</code>|EXAMPLE2=
|x2= <code>[[lbSort]] [_myControl, "DESC"];</code>
|x3= <code>[[lbSort]] 101;</code>|EXAMPLE3=
|x3= <code>[[lbSort]] 101;</code>
|x4= <code>[[lbSort]] [101, "DESC"];</code>|EXAMPLE4=
|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]] |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]]
}}
}}



Revision as of 01:05, 18 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