A version of the BASIC programming language from Microsoft specialized for developing Windows applications. When first released in 1991, it was similar to Microsoft's QuickBASIC. With its visual user interface development tools, Visual Basic became very popular by the mid-1990s. Visual Basic 6.0, which was released in early 1999, was the last version of Visual Basic to be offered as a stand-alone development product. Visual Basic became part of Visual Studio.NET.
Visual Basic was designed to be easy to learn and use. The language not only allows programmers to easily create simple GUI applications, but also has the flexibility to develop fairly complex applications as well. Programming in VB is a combination of visually arranging components or controls on a form, specifying attributes and actions of those components, and writing additional lines of code for more functionality. Since default attributes and actions are defined for the components, a simple program can be created without the programmer having to write many lines of code. Performance problems were experienced by earlier versions, but with faster computers and native code compilation this has become less of an issue.
Although programs can be compiled into native code executables from version 5 onwards, they still require the presence of runtime libraries of approximately 2 MB in size. This runtime is included by default in Windows 2000 and later, but for earlier versions of Windows it must be distributed together with the executable.
Forms are created using drag and drop techniques. A tool is used to place controls (e.g., text boxes, buttons, etc.) on the form (window). Controls have attributes and event handlers associated with them. Default values are provided when the control is created, but may be changed by the programmer. Many attribute values can be modified during run time based on user actions or changes in the environment, providing a dynamic application. For example, code can be inserted into the form resize event handler to reposition a control so that it remains centered on the form, expands to fill up the form, etc. By inserting code into the event handler for a keypress in a text box, the program can automatically translate the case of the text being entered, or even prevent certain characters from being inserted.
Visual Basic can create executables(EXE), ActiveX controls, DLL files, but is primarily used to develop Windows applications and to interface web database systems. Dialog boxes with less functionality (e.g., no maximize/minimize control) can be used to provide pop-up capabilities. Controls provide the basic functionality of the application, while programmers can insert additional logic within the appropriate event handlers. For example, a drop-down combination box will automatically display its list and allow the user to select any element. An event handler is called when an item is selected, which can then execute additional code created by the programmer to perform some action based on which element was selected, such as populating a related list.
Alternatively, a Visual Basic component can have no user interface, and instead provide ActiveX objects to other programs via Component Object Model (COM). This allows for server-side processing or an add-in module.
The language is garbage collected using reference counting, has a large library of utility objects, and has basic object oriented support. Since the more common components are included in the default project template, the programmer seldom needs to specify additional libraries. Unlike many other programming languages, Visual Basic is generally not case sensitive, although it will transform keywords into a standard case configuration and force the case of variable names to conform to the case of the entry within the symbol table entry. String comparisons are case sensitive by default, but can be made case insensitive if so desired.
2007-06-16 01:20:35
·
answer #1
·
answered by Ashik Murshed 2
·
1⤊
0⤋
VB6 is part of MS Visual Studio 6 and is at least three versions behind the current VB2005 release. It is the last version which doesn't use the Dot Net framework.
There is a free version call the "Learning Edition" which allows you to write and execute VB code within the IDE [Integrated Development Environment] but will not allow you to write UserControls or generate a compiled EXE for distribution to other PC's
EDIT:
THe learning Edition was provided in many how to books on VB6. You may find a copy still available with the learning edition for sale or even at a local library...
VB6 is installable on Win98SE and WinME where the newer Dot Net develpment environments are not. You can write Dot Net code on Xp machines for execution on Win98 if the Win98 target machine has the DotNet framework installed.
VB6 is also the basis of the MS Office Scripting language VBA. VBA is closer in syntax to VB6 than VB.NET however this may be changing in the newer releases of MS Office
VB6 can interact with databases but the connection and managment of data to/from the DB is different. VB6 uses ADO or DAO to connect with a DB and makes heavy use of recordsets
2007-06-16 01:18:56
·
answer #2
·
answered by MarkG 7
·
1⤊
0⤋
Visual Basic isn't free.
BASIC is an interpreted language, with all the flaws inherent in interpreted language. You're really much better off with a compiled language, because it's so much easier to build and maintain bullet-proof code.
I recommend C/C++, as the GNU compiler is exceptionally good. There is a port to Windows called, if I recall correctly, dgcpp.
2007-06-16 01:17:40
·
answer #3
·
answered by Anonymous
·
0⤊
2⤋
Awsume guide here: http://www.samspublishing.com/library/content.asp?b=STY_VB6_24hours&seqNum=5&rl=1
2007-06-16 05:16:42
·
answer #4
·
answered by Anonymous
·
0⤊
0⤋