Tips for Visual Basic 6 Migration

One of the (very few) commonalities between Visual Basic 6 and Visual Basic .NET and higher is the syntax approach. This should help a little more in migrating from Visual Basic 6 to 2015. Although Visual Basic 2015 (more precisely, VB.NET from 2002 to 2015) still enables the usage of the On Error Goto and On Error Resume statements, when developing .NET applications with Visual Basic, you should never use such statements for two reasons. First, exceptions are the only thing that enables interoperation with other .NET languages such as Visual C# and Visual F#. This is fundamental when developing class libraries or components that could potentially be reused from other languages than Visual Basic. The second reason is that the old-fashioned way for handling errors is not as efficient as handling .NET exceptions. If you decided to migrate, you should completely forget On Error and exclusively use exceptions.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.29.22