1. Yiannis Papadomichelakis
  2. PowerBuilder
  3. Wednesday, 24 January 2024 16:32 PM UTC

Hi PB community...

Is there any way to obtain the parent menu of a menu?

If for example I have the reference of a leaf menu, can I "travel" from that menu to it's root?

I know I can use the item[] property to get the child menu items, I suppose I can build an array with all parent - child relations but I HOPE there is a better way, maybe a property or a function I missed from PB documentation.. wink

 

How would you solve a problem like this?

 

 

 

Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 24 January 2024 17:03 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi, Yiannis - 

Have you tried using the menu object's GetParent() method?

Best regards, John

Comment
  1. Yiannis Papadomichelakis
  2. Wednesday, 24 January 2024 17:18 PM UTC
You are right!

I was looking for a specific property. GetParent() is described in a very generic way on help file.



Thanks!
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.