I have a model containing some internal code that I want to be able to programmatically remove from the model before saving it as an "external" version. I searched and found code to remove an entire module that works great. However, now the resulting "external" file gets compiler errors when code is executed that contains a reference to one of the subroutines that were in the deleted module. Although I have coding to make sure the logic never hits the missing subroutines, the compiler doesn't know that. I think a workaround would be to either: 1) programmatically create a dummy stub subroutine with the same name that was in the deleted module, or 2) precode the dummy stub under a different name and programmatically rename the subroutine.
I have not been able to locate any coding or hints on how to do that. I'm hoping someone here has some ideas.
Thanks!
I have not been able to locate any coding or hints on how to do that. I'm hoping someone here has some ideas.
Thanks!