Accessing Menuitems
- How-to
- David Vasconcelos
- PowerBuilder
- Tuesday, 12 February 2019 07:41 PM UTC
Haven't worked with menus to often so I hope this is just something easy and I am just not seeing the forest through the trees. I create a generic menu variable then assign a menu to it. Then I need to access the menu items. Because I created the menu variable using the generic menu type it does not recognize any menu items under it. So how do I access those items? Below is the scenario
Instance Variable for the menu
Menu ImPopmenu
imPopmenu = Create menu
imPopmenu = m_popmenu
//m_popmenu has two items In it...
m_popmenu
m_name
m_something
if I code... imPopmenu.m_name...... it gives me an error that it does not recognize m_name.
IF I created the variable like this it does work (basically Fully qualifying the menu)
m_popmenu imPopmenu
imPopmenu = Create m_popmenu
Tried to use "Dynamic" but that does not work either..
Dave V
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.