LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Child Class from a Parent Class

Solved!
Go to solution
Highlighted

Hello All,

 

    I'm confused where to find the option to remove a child class from its parents class.

I see that I can change it's Inheritance (as seen in the attached picture). However, I do not see the option to remove let's say the AOP.lvclass from the Tests.lvclass

 

Reading through previous threads, it seems like this task is very unclear. Though I hope there's a simple solution that I just overlooked.

 

Regards,

OJwithPulp

0 Kudos
Message 1 of 9
(258 Views)

The parent has no clue about any of the children that inherit from it.  You have to make the change to the child class.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Message 2 of 9
(241 Views)
Solution
Accepted by topic author OJwithPulp

@OJwithPulp wrote:

Hello All,

 

    I'm confused where to find the option to remove a child class from its parents class.

I see that I can change it's Inheritance (as seen in the attached picture). However, I do not see the option to remove let's say the AOP.lvclass from the Tests.lvclass

 

Reading through previous threads, it seems like this task is very unclear. Though I hope there's a simple solution that I just overlooked.

 

Regards,

OJwithPulp


Try changing its inheritance to the LV generic class and save all.

 

Ben

Message 3 of 9
(238 Views)

Thank you to both " and

0 Kudos
Message 4 of 9
(200 Views)

@OJwithPulp wrote:


You should not have had to change its inheritance in order to delete the class from the project.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 5 of 9
(192 Views)

@crossrulz wrote:

@OJwithPulp wrote:


You should not have had to change its inheritance in order to delete the class from the project.


Wasn't that changed in an early version of LVOOP?

 

Ben

0 Kudos
Message 6 of 9
(189 Views)

@Ben wrote:

@crossrulz wrote:

@OJwithPulp wrote:


You should not have had to change its inheritance in order to delete the class from the project.


Wasn't that changed in an early version of LVOOP?

 

Ben


I don't know about the early days of LVOOP (it was a long time before I started to dive in).  But at least recently, I deleted a class from my project that did not use the LV Object as its direct ancestor.  If the parent actually cared, then I could see an issue.  But the parent has absolutely no clue who inherits from it.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 7 of 9
(179 Views)

Well, this is what was happening to me before (see pictures). I would try and remove a class from the labview project and it wouldn't work in the sense that It can still be seen under the Test Parent Class.

0 Kudos
Message 8 of 9
(164 Views)
Solution
Accepted by topic author OJwithPulp

@OJwithPulp wrote:

Well, this is what was happening to me before (see pictures). I would try and remove a class from the labview project and it wouldn't work in the sense that It can still be seen under the Test Parent Class.


It would still be there if it was still in memory due to a previous run of your software that used it.  If you closed the project and opened it back up, it should be gone.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Message 9 of 9
(144 Views)