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:

 

[label]

{object}.GetItemCount

GIVING {return}

 

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:

  1. The {return} value identifies the number of menu items that currently defined for the {object}. This number includes separator items.

  2. The ZERO flag is set if the value returned is zero.

  3. 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

 



PL/B Language Reference GetItem Method (FLOATMENU, MENU, MENUITEM,SUBMENU) GetItemName Method (FLOATMENU, MENU, MENUITEM,SUBMENU)