VB6 to VB.Net Beginners Tutorial
Short Description
This tutorial is aimed at the VB.Net beginner. It will show some of the major differences VB.Net has introduced over VB6. This tutorial does not cover changes in the IDE, only basic code changes.
Website: www.bassicsoftware.com | Filesize: 40kb
No of Page(s): 17
Content
…
Option Explicit / Option Strict
Option explicit is now defaulted to on instead of off as in VB6. To turn Option Explicit off (even though you shouldn’t) type the following at the top of the form.
Option Explicit Off
If a variable is not declared in your form it will be created as an Object if the above statement is used.
Option Strict is a new command in VB.Net. This statement forces you to convert variable types to the same type before they can be compared. To convert variable types use commands such as CInt, CLng, CStr, CBool and CType functions.
…
Get the file Download here
Related Books:Related Searches: variable types, content option, clng, code changes, ctype
Comments
Leave a Reply