GetItemName Method (FLOATMENU, MENU, MENUITEM, SUBMENU)
PLBCMP GUI Only
The GetItemName method returns the name for a specified menu item 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 or SUBMENU object from the current item name is retrieved.
return
Required. A Character String Variable that receives the menu item' name.
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 accessed.
Flags Affected: EOS, OVER, ZERO
Note the following:
The {return} variable receives the menu item's name. If there is no text set for a menu item, {return} is set to NULL.
The OVER and ZERO flags are always cleared.
The EOS flag is set if the returned text string is truncated when the character string variable is too small.
See Also: Method Syntax, FLOATMENU, MENU, SUBMENU Methods, MENUITEM Methods
![]() |