Skip to content

Conversion

Benjamin edited this page Mar 14, 2020 · 7 revisions

Conversion

There are two modes for conversion:

  1. Convert a project
  2. Convert a File or set of files (modules, classes, forms).

image

Converting a Project

Do this at least once. Pick a temp directory. What this will give you is a basic directory structure, and will also output our base class and helper function library. You may or may not use all of these, but if you're wondering where some of our syntax comes from, there are simply a couple basic sets of functions, as well as library inclusions.

Converting a file

Enter a filename, and click the Single File button. If the file is in the source directory, only the filename is required, otherwise, just enter the full path.

Output

To mimic the VB6 interface, sub-folders of Modules, Classes, and Forms are created. These are reflected in the created project files in C#.

Preventing re-conversion after edits in output file

If you have already converted a file, and then manually edited the file afterward, simply add the following at the top of the C# file:

// ### CONVERTED

So long this is near the top of the existing output file, this will prevent the output file from being overwritten by the next conversion.

Manual Support

Manual support is also available through the Immediate Window through the following:

?ConvertFile("<filename.bas>")

Although, there is enough support in the GUI this may not be as useful as the manual linting option (LintFile).

Support

If you see something not converting right, and want to, feel free to submit an issue.