lbSort: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (alt syntax) |
m (template:command argument fix) |
||
Line 9: | Line 9: | ||
| Sorts listbox entries alphabetically ascending by their [[lbText]] | | Sorts listbox entries alphabetically ascending by their [[lbText]] | ||
|= | |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''lbSort''' control |= | | '''lbSort''' control |SYNTAX= | ||
|p1= control: [[Control]] |= | |p1= control: [[Control]] |PARAMETER1= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|s2= '''lbSort''' [control, sortOrder] (''since Arma 3 v1.18'') |= | |s2= '''lbSort''' [control, sortOrder] (''since Arma 3 v1.18'') |SYNTAX= | ||
|p21= control: [[Control]] |= | |p21= control: [[Control]] |PARAMETER1= | ||
|p22= sortOrder: [[String]] - "ASC": ascending, "DESC": descending|= | |p22= sortOrder: [[String]] - "ASC": ascending, "DESC": descending|PARAMETER2= | ||
|r2= [[Nothing]] |= | |r2= [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|s3= '''lbSort''' idc (''since Arma 3 v1.67'')|= | |s3= '''lbSort''' idc (''since Arma 3 v1.67'')|SYNTAX= | ||
|p41= idc: [[Number]] |= | |p41= idc: [[Number]] |PARAMETER1= | ||
|r3= [[Nothing]] |= | |r3= [[Nothing]] |RETURNVALUE= | ||
|s4= '''lbSort''' [idc, sortOrder] (''since Arma 3 v1.67'')|= | |s4= '''lbSort''' [idc, sortOrder] (''since Arma 3 v1.67'')|SYNTAX= | ||
|p61= idc: [[Number]] |= | |p61= idc: [[Number]] |PARAMETER1= | ||
|p62= sortOrder: [[String]] - "ASC": ascending, "DESC": descending|= | |p62= sortOrder: [[String]] - "ASC": ascending, "DESC": descending|PARAMETER2= | ||
|r4= [[Nothing]] |= | |r4= [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[lbSort]] _myControl;</code>|= | |x1= <code>[[lbSort]] _myControl;</code>|EXAMPLE1= | ||
|x2= <code>[[lbSort]] [_myControl, "DESC"];</code>|= | |x2= <code>[[lbSort]] [_myControl, "DESC"];</code>|EXAMPLE2= | ||
|x3= <code>[[lbSort]] 101;</code>|= | |x3= <code>[[lbSort]] 101;</code>|EXAMPLE3= | ||
|x4= <code>[[lbSort]] [101, "DESC"];</code>|= | |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]] |= | | [[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 14:42, 7 April 2019
Description
- Description:
- Sorts listbox entries alphabetically ascending by their lbText
- Groups:
- Uncategorised
Syntax 1
Syntax 2
- Syntax:
- lbSort [control, sortOrder] (since Arma 3 v1.18)
- Parameters:
- control: Control
- sortOrder: String - "ASC": ascending, "DESC": descending
- Return Value:
- Nothing
Syntax 3
Syntax 4
- Syntax:
- lbSort [idc, sortOrder] (since Arma 3 v1.67)
- 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 here