LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get name of Parent Class of a Child Class

Hi All

 

As the title states, is it possible to get the name of the parent class if I have an object of the child class?  Is there an exist VI or property I can access?

 

For example, if I have a ChildB.lvclass that inherits from ParentA.lvclass, I want to be able to get the name "ParentA.lvclass" from ChildB.

 

Thanks

Mike

0 Kudos
Message 1 of 7
(3,447 Views)

Have you already installed GOOP?

You can achieve the way using "GOOPUtil_GetParentClassesHiererchy.vi"GOOP.PNG

 

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
Message 2 of 7
(3,403 Views)

You could also make a get name method that returns an array. Force each child to implement the method, and to unconditionally call the parent method.

 

Why do you need this? If it's not for error reporting or debugging, there might be better solutions.

Message 3 of 7
(3,377 Views)

Do you need this at run-time or at edit-time?

0 Kudos
Message 4 of 7
(3,339 Views)

Need this at run-time, preferably w/o having to install a 3rd party solution like GOOP.

 

However, I think I am going to work my way around it and try a different approach.

 

Regards

0 Kudos
Message 5 of 7
(3,308 Views)

Once again, carya, you've pulled me from the jaws of sin.  I'm now back on the path of righteousness - usinf DynoDispatch VI's for their intended purpose!

0 Kudos
Message 6 of 7
(2,971 Views)

pnfc.png

"If you weren't supposed to push it, it wouldn't be a button."
Message 7 of 7
(2,957 Views)