menuSort: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) |
||
Line 15: | Line 15: | ||
|p2= path: [[Array]] |PARAMETER2= | |p2= path: [[Array]] |PARAMETER2= | ||
|p3= AtoZ: [[Boolean]] - [[ | |p3= AtoZ: [[Boolean]] - [[true]] to sort from A to Z, [[false]] to sort from Z to A |PARAMETER3= | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
Line 25: | Line 25: | ||
|p22= path: [[Array]] |Alternative Parameter 2= | |p22= path: [[Array]] |Alternative Parameter 2= | ||
|p23= AtoZ: [[Boolean]] - [[ | |p23= AtoZ: [[Boolean]] - [[true]] to sort from A to Z, [[false]] to sort from Z to A |Alternative Parameter 3= | ||
|r2= [[Nothing]] |Alternative Return Value= | |r2= [[Nothing]] |Alternative Return Value= |
Revision as of 18:24, 26 December 2020
Description
- Description:
- Sorts subentries of item on given path by their text.
- Groups:
- GUI Control - Menu
Syntax
- Syntax:
- menuSort [idc, path, AtoZ]
- Parameters:
- idc: Number
- path: Array
- AtoZ: Boolean - true to sort from A to Z, false to sort from Z to A
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- control menuSort [path, AtoZ]
- Parameters:
- control: Control
- path: Array
- AtoZ: Boolean - true to sort from A to Z, false to sort from Z to A
- Return Value:
- Nothing
Examples
- Example 1:
findDisplay 313 displayCtrl 120 menuSort [[],true];
Additional Information
- See also:
- menuEnablemenuExpandmenuCollapsemenuSetDatamenuSetValuemenuSetCheckmenuSetActionmenuDeletemenuAddmenuHovermenuValuemenuURLmenuTextmenuEnabledmenuCheckedmenuActionmenuShortcutTextmenuShortcutmenuPicturemenuDatamenuClearmenuSetPicture
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