GetItem Method (FLOATMENU, MENU, MENUITEM, SUBMENU)


9.0, PLBCMP GUI Only

 

The GetItem method obtains a MENUITEM object from a FLOATMENU, MENU, MENUITEM, or SUBMENU object. The method uses the following format:

 

[label]

{object}.GetItem

[GIVING {return}]:

 

 

USING [*Key=]{key}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A FLOATMENU, MENU or SUBMENU object from which an item is retrieved.

return

Optional. The retrieved MENUITEM object.

key

Required. A Character String Variable that specifies the run-time name (RUNNAME property) or a Numeric Variable that specifies the zero-based position of the menu item that is retrieved.

Flags Affected: none

Note the following:

  1. No flags are affected by this method.

 

 

See Also: Method Syntax, FLOATMENU, MENU, SUBMENU Methods, MENUITEM Methods

 



PL/B Language Reference AddItem Method (FLOATMENU, MENU, SUBMENU) GetItemCount Method (FLOATMENU, MENU, MENUITEM, SUBMENU)