Conversion Options


Conversion Options


Your project is unique, and you can configure dozens of conversion options to suit the needs of your particular application.  To see the conversion options available, choose "Change Conversion Options" from the main screen.



The program navigation can be customized to turn warnings off and on, and to go from picking a project to convert to browsing the converted code with one click.  It is highly recommended, however, than you stop at the problem summary screen and review any potential conversion problems before proceeding.




General conversion options control how ref and out arguments are to be converted, the number of parallel processes to use when converting multiple projects, and other miscellaneous conversion options.  Be careful when changing the default options in the "Ref and Out Arguments" and "Misc" sections, as this can have a negative effect on conversion accuracy.



VB Namespace options allow you to specify which VB specific functions you want converted to their .Net equivalents.  In general, you should leave all these options checked, unless a particular item is causing problems in your conversion.



The "With" options control how VB With clauses are converted.  They can be converted two ways:


1) The With clause can be repeated for each reference in the with block (the first example below), or


2) Assign the With clause to a temporary variable and reference the temporary variable in the with block.  This is essential if the With clause contains side effects (such as adding a record to a database as in the example below).


By default, VBConversions will use temporary variables to convert With clauses if a method is being called in the With clause or if it can't determine if a method is being called.



The Notes / Problems options screen allows you to specify the minimum conversion note and potential problem severities to report on.  It is not recommended to change either value to High, as you may not be notified of potentially serious conversion issues.


The C# Indentation options screen allows you to control how the C# code output by the converter is indented.  As you change the options, you can immediately see how it would affect formatting by viewing the sample C# code in the right hand pane.



The C# Braces and new lines options screen allows you to control how braces and new lines are formatted in the C# code output by the converter.  As you change the options, you can immediately see how it would affect formatting by viewing the sample C# code in the right hand pane.


Copyright 2012, VBConversions