lbSort: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[0-9]THEINCREDIBLEHULK" to "")
m (Text replacement - " \|([ps][0-9]+) *= " to " |$1= ")
Line 26: Line 26:
|r1= [[Nothing]]
|r1= [[Nothing]]


|s2= [[lbSort]] [control, sortOrder]
|s2= [[lbSort]] [control, sortOrder]


|s2since= arma3 1.18
|s2since= arma3 1.18
Line 35: Line 35:
|r2= [[Nothing]]
|r2= [[Nothing]]


|s3= [[lbSort]] idc
|s3= [[lbSort]] idc


|s3since= arma3 1.68
|s3since= arma3 1.68
Line 43: Line 43:
|r3= [[Nothing]]
|r3= [[Nothing]]


|s4= [[lbSort]] [idc, sortOrder]
|s4= [[lbSort]] [idc, sortOrder]


|s4since= arma3 1.68
|s4since= arma3 1.68

Revision as of 23:30, 10 August 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]
Parameters:
control: Control
sortOrder: String - "ASC": ascending, "DESC": descending
Return Value:
Nothing

Syntax 3

Syntax:
lbSort idc
Parameters:
idc: Number
Return Value:
Nothing

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.