lnbSort: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ |arma 3|= Game name |1.08|= Game version |arg= local |= Ar...")
 
(format)
Line 14: Line 14:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''lnbSort''' [idc,column,order]|= Syntax
| '''lnbSort''' [idc, column, reversed]|= Syntax
 
|p1= [idc, column, reversed]: [[Array]]|=
|p1=  idc: [[Number]] |= Parameter 1
|p2=  idc: [[Number]] |= Parameter 1
|p2=  column: [[Number]] |= Parameter 2
|p3=  column: [[Number]] |= Parameter 2
|p3order: [[Boolean]] false: descending / true: ascending |= Parameter 3
|p4reversed (Optional): [[Boolean]] - [[false]]: descending / [[true]]: ascending. Default: [[false]] |= Parameter 3


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|s2= [[Control]] '''lnbSort''' [column,order] |= Syntax
|s2= control '''lnbSort''' [column, reversed] |= Syntax


|p21=  idc: [[Number]] |= Parameter 21
|p21=  control: [[Control]]|= Parameter 21
|p21=  [column, reversed]: [[Array]]|= Parameter 21
|p22=  column: [[Number]] |= Parameter 22
|p22=  column: [[Number]] |= Parameter 22
|p23=  order: [[Boolean]] false: descending / true: ascending |= Parameter 23
|p23=  reversed (Optional): [[Boolean]] - [[false]]: descending / [[true]]: ascending. Default: [[false]] |= Parameter 23


|r2= [[Nothing]] |= Return value
|r2= [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1= <code>'''lnbSort''' [1800,1,false]</code>|= Example 1   
|x1= <code>[[lnbSort]] [1800, 1, [[false]]];</code>|= Example 1   
|x2= <code>_control '''lnbSort''' [1,true]</code>|= Example 2
|x2= <code>_ctl [[lnbSort]] [1, [[true]]]</code>|= Example 2


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSortByValue]], [[lbText]], [[lbValue]] |= See also
| [[lbSort]], [[lnbSortByValue]], [[tvSortByValue]], [[lbSortByValue]], [[tvSort]], [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSortByValue]], [[lbText]], [[lbValue]] |= See also


}}
}}

Revision as of 13:07, 27 January 2017

Hover & click on the images for description

Description

Description:
Sorts given multicolumn listbox by texts in given column in ascending or descending order.
Groups:
Uncategorised

Syntax

Syntax:
lnbSort [idc, column, reversed]
Parameters:
[idc, column, reversed]: Array
idc: Number
column: Number
reversed (Optional): Boolean - false: descending / true: ascending. Default: false
Return Value:
Nothing

Alternative Syntax

Syntax:
control lnbSort [column, reversed]
Parameters:
[column, reversed]: Array
column: Number
reversed (Optional): Boolean - false: descending / true: ascending. Default: false
Return Value:
Nothing

Examples

Example 1:
lnbSort [1800, 1, false];
Example 2:
_ctl lnbSort [1, true]

Additional Information

See also:
lbSortlnbSortByValuetvSortByValuelbSortByValuetvSortlbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortByValuelbTextlbValue

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 here

Bottom Section