Visual Basic

**Visual Basic** (VB) is a programming language developed by Microsoft for their operating system Windows. The BASIC language is said to be easier to read than other languages.

_Visual Basic_ is a widely understood high-level programming language, written using simple English-like words and syntax. It is an interpreted language, code can be run immediately after being written.

Having an interpreter makes it simpler to use, as there is no need for the computer to compile the code, possibly finding errors to fix, before the compiled version can be run. Once the code is working, it can be compiled into an .exe file so that it will run on all modern Windows computers, whether VB is installed or not. The language allows a beginning programmer to produce professional-looking Windows applications, as it includes drawing tools to create normal Windows forms. VB also includes advanced features - concepts and structures which allow programs to be adapted for use with the Internet. _Visual Basic_ will not run on operating systems other than Windows and on machines with non-Intel compatible processors.

Though the program has received criticism for its faults, Visual Basic was a runaway commercial success since its release for version 3 in the summer of 1993. Many companies offered third party controls greatly extending its functionality.

## History

VB 1.0 was introduced in 1991. The drag and drop design for creating the user interface is derived from a prototype form generator developed by Alan Cooper and his company called _Tripod_. Microsoft contracted with Cooper and his associates to develop Tripod into a programmable form system for Windows 3.0, under the code name _Ruby_ (no relation to the Ruby programming language). Tripod did not include a programming language at all. Microsoft decided to combine Ruby with the Basic language to create Visual Basic. The Ruby interface generator provided the "visual" part of Visual Basic and this was combined with the "EB" Embedded BASIC engine designed for Microsoft's abandoned "Omega" database system. Ruby also provided the ability to load dynamic link libraries containing additional controls (then called "gizmos"), which later became the Visual Basic Extension (VBX) interface. Versions of Visual Basic are listed below:

|Name|Operating System|Date Released|Description|
| --- | --- | --- | --- |
|Windows|May 1991|This version was first released at the Comdex/Windows World trade show in Atlanta, Georgia.||
|DOS|September 1992|This version of the language itself was not quite compatible with Visual Basic for Windows. This was because the language was actually the next version of Microsoft's DOS-based BASIC compilers, QuickBASIC and BASIC Professional Development System. The interface uses a Text user interface, using extended ASCII characters to simulate the appearance of a Graphical user interface.||
|Windows|November 1992|The programming environment was easier to use than the 1.0 version, and it was more fast. Notably, forms became instantiable objects, thus laying the founding concepts of class modules as were later offered in version 4.0.||
|Windows|Summer 1993|Visual Basic 3.0 came in Standard and Professional versions. VB3 included version 1.1 of the Microsoft Jet Database Engine that could read and write Jet (or Access) 1.x databases. By the release of this version the product became more successful. However, Visual Basic 3.0 was criticized highly as not being a "true programming language"; It was not able to create actual executable (EXE) files. This meant that any VB program had to be interpreted at runtime and ran slower than a normal computer program.||
|Windows|August 1995|This was the first version that can create 32-bit applications as well as 16-bit Windows programs.  It has three editions; Standard, Professional, and Enterprise. It also introduced the ability to write non-GUI classes in Visual Basic. Incompatibilities between different releases of Visual Basic 4 caused installation and operation problems. While previous versions of Visual Basic had used the VBX controls, Visual Basic 4.0 used OLE controls (with files names ending in .OCX) instead. These type of controls were later to be named ActiveX controls.||
|Windows|February 1997|This version was released exclusively for 32-bit versions of Windows. Programmers who preferred to write 16-bit programs were able to import programs written in Visual Basic 4.0 to Visual Basic 5.0, and Visual Basic 5.0 programs can easily be converted with Visual Basic 4.0.  Visual Basic 5.0 also introduced the ability to create custom user controls, as well as the ability to compile to native Windows executable code, speeding up calculation-intensive code execution.  A free, downloadable Control Creation Edition was also released for creation of ActiveX controls. It was also used as an introductory form of Visual Basic: a regular .exe project could be created and run in the IDE, but not compiled.||
|Windows|Mid 1998|This version improved in a number of areas including the ability to create web-based applications. VB6 entered Microsoft's "non-supported phase" as of March 2008. Although the Visual Basic 6.0 development environment is no longer supported, the runtime is supported on Windows Vista, Windows Server 2008 and Windows 7. Mainstream Support for Microsoft Visual Basic 6.0 ended on March 31, 2005. Extended support ended in March 2008. In response, the Visual Basic user community expressed its grave concern and lobbied users to sign a petition to keep the product alive. Microsoft has so far refused to change their position on the matter. (but see ) Ironically, during 2005, it was exposed that Microsoft's new anti-spyware offering, Microsoft AntiSpyware (part of the GIANT Company Software purchase), was coded in Visual Basic 6.0. Its replacement, Windows Defender, was rewritten as C++ code.||

## Visual Basic .NET

Visual Basic .NET is the next series of products in Microsoft's successful _Visual Basic_ range of products. It makes creating programs easier because it is possible to drag-and-drop controls into the program. It runs on the .NET Framework and features another long line of programs (see Visual Basic .NET#Editions).

## Visual Basic for Applications

This is a scripting language used in Microsoft Office and a few other programs.  It is based on Visual Basic 6.0, and can change data in an office application, write it to a file, and do other actions.

## Support

All versions of the Visual Basic development environment from 1.0 to 6.0 have been retired and are now unsupported by Microsoft.  The associated runtime environments are unsupported too. This is except for the Visual Basic 6 core runtime environment, which will be officially supported by Microsoft until support of Windows 10 and Windows Server 2012 ends.  Third party components that shipped with Visual Studio 6.0 are not included in this support statement.  Some legacy Visual Basic components may still work on newer platforms. This is despite being unsupported by Microsoft and other vendors.

Development and maintenance development for Visual Basic 6 is possible on Windows XP, Windows Vista and Windows 2003 using Visual Studio 6.0 platforms, but is unsupported.  Documentation for Visual Basic 6.0, its application programming interface and tools is best covered in the last MSDN release before Visual Studio.NET 2002.  Later releases of MSDN focused on .NET development and had significant parts of the Visual Basic 6.0 programming documentation removed. The Visual Basic IDE can be installed and used on Windows Vista, where it exhibits some minor incompatibilities which do not hinder normal software development and maintenance.  As of August 2008, both Visual Studio 6.0 and the MSDN documentation are available for download by MSDN subscribers.

## Other websites

- VB 6.0 at MSDN
- Locxtronic.com - Learn Visual Basic 
- VB.NET History and Tutorials

## Infobox (programming language)

- **name**: Visual Basic
- **paradigm**: Object-based and Event-driven programming, event-driven
- **developer**: Microsoft
- **latest release version**: 6.0
- **typing**: Static, strong
- **implementations**: Microsoft Visual Studio
- **influenced by**: BASIC
- **influenced**: Visual Basic .NET, Gambas, REALbasic and Basic4ppc
- **operating system**: Microsoft Windows and MS-DOS