LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cast class A to class B

Solved!
Go to solution

 


@WouterG wrote:
Or in other words I was expecting it would just combine A and the default boolean value from B which results in B.

That is a reasonable expectation, but it's now how LV works. Maybe one day LV will include a function which can do this, but for now it doesn't. I'm assuming that the solution you chose (which is known as composition) is good for you, but that depends on your exact application.


___________________
Try to take over the world!
0 Kudos
Message 11 of 12
(587 Views)

Yes it is fine as well but I rather wanted to inherted solution because it would save me some get/set methods :D. Maybe maybe, I don't know, how I have it now is even better because casting everytime will maybe cause overhead when I'm doing it a lot of times.

0 Kudos
Message 12 of 12
(582 Views)