GetItemCount Method (FLOATMENU, MENU, MENUITEM, SUBMENU)
9.0F, PLBCMP GUI Only
The GetItemCount method returns the total number of items that are currently defined in a FLOATMENU, MENU, MENUITEM, or SUBMENU object. The method uses the following format:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A FLOATMENU, MENU, MENUITEM or SUBMENU object from the current item count is retrieved.
return
Required. A Numeric Variable that receives the item count.
Flags Affected: OVER, ZERO
Note the following:
The {return} value identifies the number of menu items that currently defined for the {object}. This number includes separator items.
The ZERO flag is set if the value returned is zero.
The OVER flag is set if the size of the {return} variable is too small for the value being stored.
See Also: Method Syntax, FLOATMENU, MENU, SUBMENU Methods, MENUITEM Methods
![]() |