SunQuest
 
       Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 2 - Learning the Visual Basic .NET Language
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

Learning the Visual Basic .NET Language
By: Apress Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 23
    2005-11-17

    Table of Contents:
  • Learning the Visual Basic .NET Language
  • The Evolution of VB .NET
  • Variables and Data Types
  • Arrays
  • Variable Operations
  • The String Class
  • Conditional Structures
  • Loop Structures
  • Functions and Subroutines

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!

    Learning the Visual Basic .NET Language - The Evolution of VB .NET


    (Page 2 of 9 )

    Traditional ASP development was restricted to the VBScript programming language, which was first developed as a basic scripting language for writing macros and other simple code that would be used by another application. VBScript was never intended for sophisticated, interactive web applications, hence expert programmers had to strain the language to its limit to create first-rate ASP pages. To get around many limitations in VBScript, advanced pages needed to rely on separate components written in other languages, which generally had to be installed and configured separately on the web server. In the end, even though VBScript was intended to be easier to use than ordinary Visual Basic, writing advanced ASP pages actually became much more complicated because of the additional effort needed to circumvent VBScript’s limitations.

    Just replacing VBScript with Visual Basic would have been a significant advantage. Some of the features Visual Basic 6 offers that VBScript lacks include the following:

    1. Access to the platform services. VBScript, on the other hand, is automatically isolated by the scripting host and has many security-related restrictions.
    2. Typed programming. VBScript doesn’t allow you strict control over data types, and works with special “variant” variables instead, which are supposed to be easier to use. Unfortunately, they also introduce data type conversion problems and difficult-to-detect errors.
    3. Event-driven programming. Unlike Visual Basic, VBScript is notoriously disorganized and has little flexibility to group or organize code so that code can be easily debugged and reused.
    4. Support for objects. Visual Basic doesn’t have perfect object-oriented features, but they are still light years over what VBScript can accomplish.

    However, ASP.NET has completely skipped over this stage in evolution and moved directly to the advanced capabilities of Visual Basic .NET. This latest version of Visual Basic is a complete redesign that answers years of unmet complaints and extends the VB language into new territory. Some of the new features include the following:

    • Structured error handling. The end of the aggravating “On Error Goto” construct has finally arrived. VB .NET introduces .NET’s new standard: clean, concise, structured exception handling. You’ll see it in Chapter 11.
    • Language refinements. Every aspect of the VB language has been tweaked and refined. You can now overload functions, declare and assign variables on the same line, and use shortened assignment syntax.
    • Strong typing. Even Visual Basic 6 performed some automatic variable conversions that could cause unusual bugs. VB .NET allows you to rein in your program and prevent possible errors with strict type checking.
    • True object-oriented programming. Inheritance, interfaces, polymorphism, constructors, shared members and abstract classes…the list goes on, and Visual Basic .NET integrates them all into the language.

    These are only some of the changes, but they’re enough to show you that VB .NET is separated from VBScript by two major evolutionary leaps. All of these features are available in other .NET languages such as C#, but Visual Basic and VBScript developers will have to adjust the most.

    More Visual Basic.NET Articles
    More By Apress Publishing


       · This article is an excerpt from the book "Beginning ASP.NET in VB.NET: From Novice...
     

    Buy this book now. This article is excerpted from chapter three of the book Beginning ASP.NET in VB.NET: From Novice to Professional, written by Matthew MacDonald (Apress, 2004; ISBN: 1590592786). Check it out at your favorite bookstore today. Buy this book now.

    VISUAL BASIC.NET ARTICLES

    - Movement and Player Statistics in a VB.NET T...
    - Creating and Drawing a Game Map in VB.NET
    - Working with Classes and Properties for Game...
    - Working with Loops, Arrays, and Collections ...
    - Learning Loops in VB.NET for Game Development
    - Learning VB.NET: Working with Variables, Con...
    - The Basics of VB.NET Through Text Game Devel...
    - Learning VB.NET Through Text Game Development
    - Types of Operators in Visual Basic
    - Operators
    - Understanding Custom Events using Visual Bas...
    - Polymorphism using Abstract Classes in Visua...
    - Shadowing using Shadows in Visual Basic.NET ...
    - Overloading and Overriding in Visual Basic.N...
    - More on Controlling Windows Fax Services Usi...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway