Arbortext Command Language > Functions by Alphabetical Listing > menu_item_count
  
menu_item_count
menu_item_count (menupath)
 
This function returns the number of items in the menu specified by menupath. Returns -1 if menupath does not specify an existing menu. If menupath specifies an item, that is, not pulldown menu, the number of items in the containing menu is returned. Menu titles do not count as items.
The menupath is a string that defines the path to the menu. Refer to the related topics for more information on menu paths.
Related Topics
Menu paths
Modifying the default menus
Special characters in menu paths
Shortcut menus