Skip to main content
Version: Next

Count menus

Count menus ( {process : Integer} ) : Integer

ParameterTypeDescription
processInteger→Process reference number
Function resultInteger←Number of menus in the current menu bar
History
ReleaseChanges
6Created

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.

See also​

Count menu items

Properties​

Command number404
Thread safeno
Forbidden on the server