Page tree

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

Compare with Current View Page History

« Previous Version 6 Next »

Question: How can I remove an application function and replace calls to it with something different?

Answer: You may try this in your translation configuration script.  In the <compile> section of the script, do a remove/remove-stubout with a migPattern. This will rework the calls. Then, after the <analyse> section, use refactor/remove-delete to remove the original. Something like this.

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

Since the methods to be refactored are in a module, these rules will be needed for each VBP that uses the module – unless you moved the module to an IDF using the SharedFile command. 

Another option that has some appeal is to keep your original application interface calls as is, but to 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 are doing … and if you want to preserve the interface or not.


  • No labels