Get a Submenu In PowerBuilder

Get a Submenu In PowerBuilder

Getting a reference to the window’s menu is easily accomplished using the window’s MenuId property. But what if you want to get a reference to a submenu and all you have is a string with the menu’s name? This following function will do the trick:
Just pass this function your main menu (the root), the name of the submenu you are looking for, and it will return the submenu in a reference variable

f_GetSubMenu

Good Luck!

Was this article helpful?

Related Articles

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments