Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Q: How can I remove an application function and replace calls with something different?

A: You can also try this:

In the <compile>, do a remove/remove-stubout with a migPattern. This will rework the calls. Then after the <analyse> use refactor/remove-delete to remove the original.
Something like this.

<Compile Project="%SrcPath%">
<refactor>
<remove identifier="ScanToolLib.readNode" migStatus="stubout" migPattern="%1d.ReadXMLNode(%2d))" />
</refactor>
</Compile>
<Analyse />
...
<refactor>
<remove identifier="ScanToolLib.readNode" migStatus="delete" />
</refactor>
...
<Author>

Since the methods to be refactored were in a module, it will not be in an IDF (unless you move the module using the SharedFile command) , so these rules will be needed for each VBP that uses the module.


Another option that is has some appeal is to keep your original application interface calls as is, but fine tune the implementation to use .NET by hand. Then, use author/replacefile to drop in your fine-tuned file. It really depends on what you were doing … and if you want to preserve the interface or not.

  • No labels