lbSort: Difference between revisions
Jump to navigation
Jump to search
Fred Gandt (talk | contribs) m (<pre> to <code> + "see also") |
No edit summary |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Sorts listbox entries | | Sorts listbox entries alphabetically ascending by their text. Second version of the command allows descending sorting as well. Order could be: | ||
* "ASC" | |||
* "DESC" | |||
|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''lbSort''' control |= Syntax | | '''lbSort''' control<br />'''lbSort''' [control, sortOrder] |= Syntax | ||
|p1= control: [[Control]] |= Parameter 1 | |p1= control: [[Control]] |= Parameter 1 | ||
|p2= sortOrder: [[String]]|= Parameter 2 | |||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
Line 18: | Line 22: | ||
|x1= <code>[[lbSort]] _myControl;</code>|= Example 1 | |x1= <code>[[lbSort]] _myControl;</code>|= Example 1 | ||
|x2= <code>[[lbSort]] [_myControl, "DESC"];</code>|= Example 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 08:47, 18 April 2014
Description
- Description:
- Sorts listbox entries alphabetically ascending by their text. Second version of the command allows descending sorting as well. Order could be:
- "ASC"
- "DESC"
- Groups:
- Uncategorised
Syntax
- Syntax:
- lbSort control
lbSort [control, sortOrder] - Parameters:
- control: Control
- sortOrder: String
- Return Value:
- Nothing
Examples
Additional Information
- See also:
- lbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortByValuelbTextlbValue
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