jdunham Posted October 14, 2011 Report Share Posted October 14, 2011 Is there any easy way to add a new method VI to an existing hierarchy of inherited classes? Right now I make the VI in the base class, and then save as... to make a copy in each child class, and then I have to change the input and output class terminals, add it to the correct class, and re-import the icon glyph. I guess that's not too bad, but it is pretty tedious. Quote Link to comment
Jon Kokott Posted October 14, 2011 Report Share Posted October 14, 2011 create the method in parent class then on the child class right click: new-> VI for override select dynamic dispatch instance to override there. Quote Link to comment
Ryan Podsim Posted October 17, 2011 Report Share Posted October 17, 2011 Are you changing the code at all? If not, then there is no need for each child class to have that VI, just call the parent VI. 2 Quote Link to comment
crelf Posted October 18, 2011 Report Share Posted October 18, 2011 new-> VI for override... Right - unless your method is already child or isn't going to be part of an inheritance scheme, and that's called method cloning (which is not supported in native LVOOP, but is with jgcode's LVOOP Assistant and Endevo's GDS). 1 Quote Link to comment
Daklu Posted October 19, 2011 Report Share Posted October 19, 2011 [Warning: Blatent idea promotion ahead] Are you changing the code at all? If not, then there is no need for each child class to have that VI, just call the parent VI. And if you're overriding the parent method just so it is easily available from the child class (i.e. not changing the functionality,) then you may be interested in this idea. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.