isCOBOL Evolve : Appendices : Library Routines : W$MENU : WMENU-ENSURE-VISIBLE
WMENU-ENSURE-VISIBLE
The WMENU-ENSURE-VISIBLE function automatically expands the necessary menus in order to show a given menu item.
Syntax:
 CALL "W$MENU" USING WMENU-ENSURE-VISIBLE 
                     menuHandle 
                     ID
              GIVING returnCode
Parameters:
WMENU-ENABLE
Constant
 
menuHandle
USAGE HANDLE
Specifies the handle of an existing menu.
ID
any numeric data item or numeric literal
Specifies the menu entry to be shown.
Return code:
returnCode can be any signed numeric data item and provides additional information:
<=0
Operation failed.
>0
Operation successful.