Returns the number of menu objects in this menu object.
[ lMenusCount = ] Object.MenusCount
The MenusCount property syntax has the following parts:
Name |
Type |
Description |
Object |
AMenu |
AMenu object |
lMenusCount |
Long |
A integer specifying the number of menu objects in this menu object. |
This property is read-only at run time.
You can use this property to cycle through all the submenus on a menu and perform an operation on each.
The following statement returns the number of submenus on the AMenu:
lmenusCount1 = mnu1.MenusCount