menuSort: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "True" to "true")
Line 15: Line 15:
|p2= path: [[Array]] |PARAMETER2=
|p2= path: [[Array]] |PARAMETER2=


|p3= AtoZ: [[Boolean]] - [[True]] to sort from A to Z, [[false]] to sort from Z to A |PARAMETER3=
|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]] - [[True]] to sort from A to Z, [[false]] to sort from Z to A |Alternative Parameter 3=
|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

Hover & click on the images for description

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:
menuEnablemenuExpandmenuCollapsemenuSetDatamenuSetValue‎menuSetCheckmenuSetActionmenuDeletemenuAdd‎menuHovermenuValuemenuURL‎menuTextmenuEnabled‎menuCheckedmenuActionmenuShortcutTextmenuShortcutmenuPicturemenuDatamenuClearmenuSetPicture

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

Bottom Section