Answered Dynamically choose a menu item

gunerhan28

New Member
Hi everyone,

I have a problem to smart favorite menu creation.

I want to use a variable to run a menu trigger.
For instance ;
pprog = "m_Del". /* The name of menu item */
psmenu = "mReports". /* The name of sub menu */
APPLY 'CHOOSE':U TO MENU-ITEM pprog IN SUB-MENU psmenu.

Is there any solution for this problem? :(

Thanks :)
 
The best way would be to go through the menu items programatically (I think they are part of the widget tree - look up walking the widget tree) until you get to the one you are looking for, and store its handle in a variable. then
APPLY 'CHOOSE':U TO lv-MenuHandle.
 
Back
Top