Generated Code
In the following section, will find the generated code (C# and VB.NET), important messages after upgrading your code (EWIs), and helpers information.
What does the VB6 AI Migrator generate? - C# and VB.NET Differences
Error Handling
Original VB6 Code:
Public Sub OnErrorGotoLabelMethod(arg As String)
On Error GoTo errHnd
Dim s As Integer
s = CInt(arg)
Foo s
Exit Sub
errHnd:
MsgBox "Invalid Argument"
End Sub
Public Sub OnErrorResumeNextMethod(arg As String)
On Error Resume Next
MsgBox arg
MsgBox CInt(arg)
MsgBox "This line will be executed allways"
If Err.Number <> 0 Then
'This code should be executed if there were any error(s)
MsgBox "OnErrorResumeNextMethod reached the last statement"
MsgBox "OnErrorResumeNextMethod reached the last statement"
MsgBox "OnErrorResumeNextMethod reached the last statement"
End If
End SubLeave On Error Statements (VB.NET Only)
Convert To Try-Catch
To Try-Catch With Lambdas (C# Only)
Late Binding
Original VB6 Code:
Static code analysis + helper classes
Static code analysis only
Static code analysis + dynamic variables
Go Sub
Original VB6 Code:
C# Code:
VB.NET Code:
Getting information from the AssemblyInfo file
Original VB6 Code:
C# Code:
VB.NET Code:
Auto-Implemented Properties
Original VB6 Code:
C# Code:
VB.NET Code:
Case Sensitive
EWIs
Upgrade Helpers
Helpers integration

Reflection Helper
Printer Helper
Last updated
Was this helpful?