Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Macintosh Toolbox Essentials /
Chapter 3 - Menu Manager / Menu Manager Reference
Menu Manager Routines / Counting the Items in a Menu


CountMItems

You can count the number of items in a menu using the CountMItems function.

FUNCTION CountMItems (theMenu: MenuHandle): Integer; 
theMenu
A handle to the menu record of the menu whose items your application needs to count.
DESCRIPTION
The CountMItems function counts the number of items in the specified menu and returns as its function result the number of items in the menu.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996