Important: The information in this document is obsolete and should not be used for new development.
CountMItems
You can count the number of items in a menu using theCountMItemsfunction.
FUNCTION CountMItems (theMenu: MenuHandle): Integer;
theMenu- A handle to the menu record of the menu whose items your application needs to count.
DESCRIPTION
TheCountMItemsfunction counts the number of items in the specified menu and returns as its function result the number of items in the menu.