BYTEINSIGHT
GAPVelocity AI Studio helps you move from outdated tech stacks to the latest desktop, web, and cloud platforms—smarter, faster, and with less risk.
Choose a platform to see migration options:
Our comprehensive approach to application modernization, from assessment to production deployment.
Transformation Services
Not Sure Where to Start?
The VB6 AI Migrator includes features to remove unstructured “spaghetti” code and replace it with structured flow control statements in .NET. Unused labels are removed from the target .NET code. Some of the main patterns are described in this section.
Some Goto statements are used to loop a code block. The VB6 AI Migrator recognizes and converts those cases that can be transformed into a structured iteration block, as shown in the following example:
myLabel: stmt-1 ... <optional break statement> ... stmt-n Goto myLabel
do { stmt1; ... <optional break statement> ... stm2; } while (true);
Several combinations of If statements containing Gotos are supported by improving the If pattern. The code blocks involved are included into the true/false blocks of the original If.
A very simple example is as follows:
If Cond Then Goto myLabel <CodeBlock1> myLabel: <CodeBlock2>
If Not Cond Then <CodeBlock1> End If <CodeBlock2>