Home
Programming
AspectJ   Basic   C   C++   C#   Eiffel   Java   JavaScript   Pascal   PHP   Python   Rexx   Ruby   Scriptol   Tcl
Markup
HTML   XML   XAML   XUL
Query
SQL

Basic and Visual Basic - For Easy Programming

Invented in 1964 by Kemeny and Kurtz to be usable by anyone, the name is acronym of "Beginners All Purpose Symbolic Instruction Code". The interpreted version has been widely used with first personal computers, including the first PC from IBM. Bill Gates won a contest with its version. The old versions have line numbers and goto instruction to these line numbers.
Visual Basic has been created by Microsoft in 1991 and succeeds to Basica and QBasic. It is aimed at Windows applications and manage events (as mouse clics).
Visual Basic .Net (Visual Basic 7) is a new language, object oriented, running under the .Net framework.

Features

Visual Basic is object oriented and no longer uses line numbers to call subroutines... The language remains simple to learn. It has not the power of C++, Pascal, or Java.
But Visual Basic .Net is near C++ for the power.

Why to use Visual Basic?

This was an easy to learn language, and successfully for this reason in the past. Now Python, Ruby and Scriptol are the simplest to use. If you want to program Microsoft's applications by scripts, learning Basic is also useful.
Visual Basic .Net is a replacement for C# under .Net.

Sites and tools

Sample code

Hello World
10 PRINT "Hello, World!"
20 END
Hello World
Visual Basic
Public Class MyApplication
Shared Sub Main()
MessageBox.Show("Hello World!", "HELLO WORLD")
End Sub
End Class
Arithmetical
operations
10 INPUT "Enter two numbers, separated by a comma:", A, B
20 LET SUM = A + B 
30 LET DIFF = A - B
40 LET MUL = A * B 
50 PRINT "The sum is ", SUM 
60 PRINT "The difference is ", DIFF 
70 PRINT "The product is ", MUL
80 END 

Home