Count menus
Count menus {( process )} -> Function result
Parameter | Type | Description | |
---|---|---|---|
process | Integer | → | Process reference number |
Function result | Longint | ← | Number of menus in the current menu bar |
This command is not thread-safe, it cannot be used in preemptive code.
Description
The Count menus command returns the number of menus present in the menu bar.
If you omit the process parameter, Count menus applies to the menu bar for the current process. Otherwise, Count menus applies to the menu bar for the process whose reference number is passed in process.