-
Notifications
You must be signed in to change notification settings - Fork 35
Conversion
There are two modes for conversion:
- Convert a project
- Convert a File or set of files (modules, classes, forms).
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.
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.
To mimic the VB6 interface, sub-folders of Modules
, Classes
, and Forms
are created. These are reflected in the created project files in C#.
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 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
).
If you see something not converting right, and want to, feel free to submit an issue.