Visual Basic language
Visual Basic
In this part of the Visual Basic tutorial, we will introduce the Visual Basic programming language.Goal
The goal of this tutorial is to get you started with the Visual Basic programming language. The tutorial covers the core of the Visual Basic language. Variables, arrays, control structures and other core features. It does not cover graphical interface development.Visual Basic
The Visual Basic programming language is a high-level programming language for the .NET Framework. It is a very popular language. Currently, it is one of the top 10 popular languages in the world. It was created for the Windows platform. The Mono project has created a clone for the Linux and Mac platforms. The Visual Basic was created to be easy to learn. It was derived from the family of BASIC languages. It is an object oriented, compiled language. The source code is compiled into executable (.exe) files, which are executed by the .Net platform. Visual Basic underwent many changes since its initial release. It was heavily criticized for its poor design. Many of the shortcomings were fixed. Some of the not so good relics still remain in the syntax. Once considered a simpler cousin to C#, over the years it became a full featured advanced programming language. Its popularity rose and declined.Programming languages
There are currently several widely used programming languages. The following list is based on the TIOBE Programming Community Index. The numbers are from August 2010. Note that these figures are only illustrative. No one knows the exact numbers.Position | Language | Ratings |
---|---|---|
1 | Java | 18% |
2 | C | 17.9% |
3 | C++ | 9.7% |
4 | PHP | 9.2% |
5 | Visual Basic | 5.4% |
6 | C# | 5% |
7 | Python | 4.2% |
8 | Perl | 3.4% |
9 | Objective C | 3.2% |
10 | Delphi | 2.4% |
PHP dominates over the Web. While Java is used mainly by large organizations, PHP is used by smaller companies and individuals.
Visual Basic represents the popularity of rapid application development and the dominance of Microsoft.
The C# was planned to be the next big language. It should compete mainly with Java and C/C++ languages.
Python and PERL are popular scripting languages and close competitors.
The popularity of the Objective C stems from Mac and their innovative appliances.
Deplhi is a popular RAD development tool.
Compiling
Examples in this tutorial were tested on Linux and Windows XP. On Linux I have used the Mono Visual Basic compiler. On Windows, I have used the Visual Basic 2008 Express Edition.On Linux, we need to have installed the Mono Visual Basic compiler. It is called vbnc.
$ vbnc simple.vb $ ./simple.exe This is Visual BasicWe compile and run a simple Visual Basic program on Linux.
Under Windows, create a new project. Select File/New Project or click Ctrl+N. Select Console application.
Figure: Console application
To run an example, click Ctrl + F5.
Sources
The following three sources were used to create this tutorial:- msdn.com
- wikipedia.org
- Visual Basic Language specification
source : http://zetcode.com/lang/visualbasic/
0 comments:
Post a Comment