General information
Category:
Reports & Report designer
>>>Does anyone know if it is possible to either get the code behind a menu item (so that it can be run from code without the item actually being selected by the user) or to simulate the pressing of a menu item?
>>>Many thanks
>>>Caroline
>>
>>The best choice is to have the menu call an outside program that you can call from elsewhere, as well.
>>
>>If you mean one of the built-in menu items, check out SYS(1500).
>>
>>Tamar
>
>Tamar,
>Sorry I didn't make myself very clear.
>My menu option does call an external program with a parameter. However the menu items are previously made up on the fly, so is there a way to access the menu call and it's parameter?
>Thanks
>Caroline
So you're generating the menu from some metadata somewhere? Are you using GENMENU? If so, maybe you could use a GenMenuX driver to add a hook to give you what you need. In particular, the ON EXIT BAR command gives you something to hook into.
Tamar
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only