Definition of Visual Basic 6.0
Visual Basic 6.0 is an application to create a database information system. Visual Basic 6.0 is a continuation of the visual basic 1 to 5. albeit a bit behind, but this software application is used to pengimplementaisannya in the making of the database system.
Visual Basic 6.0 is also developing into Visual Studio, Visual Basic 2008 and
Visual Basic. net.
Visual Basic 6.0 is often also used in the calculation of salaries, sales of goods and others. The basic visual support with windows operating system. and for the database can use Microsoft Access, SQL server and oracle.
In the menu there are visual basic components of course need to determine coding or syntax to be used. because one dot or comma in visual basic program will result in system debug or error.
In programming many visual concepts that refer to the term "something" that forms application. Those terms have the same meaning in the neighborhood other visual programming, such as objects, properties, and events. Event-driven programming has been there before GUI (Graphical User Interface) is created and implemented in several ways. With the introduction of the mouse event driven programming is much preferred by users and program designers. Before any programming event-driven, top-down programming is used to create code that handles a lot of processing. Besides applications This technique is designed with easy to repair, in addition to code becomes flexible. However, applications created with this method have a menu complex belonging closely to the process that exists in no event driven program.Pemograman try replacing the procedural programming, but supplementing with skeleton which can distinguish between the user interface and specific processes within the application. Ms. Visual Basic and other event-driven application provides the framework so it will be more concentrated on the issue of the application.
Microsoft Visual Basic 6.0 is a programming language that works within the scope of Ms-Windows. Microsoft Visual Basic 6.0 can almost taking full advantage of the ease and sophistication that is owned by the system operating windows, the general ability of Visual Basic 6.0 is to provide components that allow it to make appropriate application program the display and the workings of the windows.
Views Basic Visual Basic 6.0
In the early stages the use of VB 6.0 should be set up to display the components contained in the VB 6.0. The components that do not appear on the screen can be displayed on the View menu. Visual programming is a new dimension in the creation of applications because it can directly describe the objects kelayar before being executed. In the visual development environment, is now the object that you create results instantly appear. The object that created it will be the same result when the program is run. It is thus no longer need to make changes to the program code manually. After all the objects placed in a form, amak obejk all the attributes are stored in a program code that can be directly executed.
Display for ms. Visual Basic 6.0 interface consists of several interconnected, namely:
- Section menu program
- Section toolbar
- Section toolbox
- Section properties window
- Section form
- Section project window
- Section window lay-out
Components in Visual Basic 6.0
There are several components that directly are often involved in making the program using Visual Basic 6.0. These components are:
- Project: The first time when the program using Visual Basic will use the components of the project will be loaded, the next is to add forms or create a module or might make the program code.
- Form: Form used when going to lay any objects that will be used in the program, objects contained in the toolbox, laid out and designed in part form. Form is actually an object that is used as a work program application, available otomatisakan new form when making a new application program, which is named form1. Generally in a form contained the dotted line is called the Grid.
- ToolBox: Toolbox is a tool box that contains icons for inserting particular object into a form window. The Toolbox can be modified, such as adding a component icon by right-clicking on the toolbox and selecting Components or Add Tab.
- Properties: Property used to determine the settings of an object. An object usually has several properties that can be set directly from the Properties window or through code. In property include information obtained regarding color, height, width and position of an object. The value of each property can affect the way the object is displayed or how an object works, property for an object similar to a local variable in a procedure. Property directly related to the object and used by processes that exist in the object.
- Program code: The source code is a set of written commands which will be executed if an object is run. This program is to control and determine the trajectory of an object.
- Event: Event is pristiwa or events that are received by an object eg, click, drag, and other shows.
- Methods: The method is a set of commands as well as the functions and procedures, but it is already available in an object. Method will usually do a special task on an object.
- Module: Module can be aligned with the form, but does not contain the object. Module may contain code yag program or procedure can be used in the application program.
Control Program
There are many commands in Visual Basic 6.0 is used to control the nets program to be made, the function of this program formed with programming logic which will be useful for the validation of the data that enter or exit the program.
Branching On Error ...
Branching is used for handling errors (error) in the program, the form of writing, there are three kinds, namely:
On Error goto
Any errors that occur, either an error in the program as well as errors in programming logic, then the error will not be visible where it died for any errors that arise then the error will display written on line (any).
On Error Resume Next
On Error Goto causes the error handling is active, so that if a program error occurs, the error that occurs will be pointing to the for further processing.
On Error Goto 0
|
Meanwhile, On Error Resume Next caused if an error occurs, the program will continue to command that follows (below) the orders were wrong.
End Statement
Statement End is used to force quit the program control of a procedure or a block of program, some examples of statements End.
End Statement is usually used to end the use of a program, eg in the program there is a button command button bercaption "Exit" then browse to the kelaur command button command is to "End".
End Function
If the program to use the function, particularly the function that will formed his own, then terminated the function of writing should be closed with end function.
End If
End if expression is usually used to end the use expression if .. then .. else ..., each command must be covered or terminated if
the end if.
End property
End property is typically used when going to work with use the class.
End Select
One statement is a conditional branching using the Select case, do not forget the end of the statement written penyatakan End Select the end of the ramification.
End Sub
Each object is placed in a form will form a module or procedure itself, the next process depends on the event that will be done with the object. At the end of the declaration of a module should be covered with End Sub.
End Type
Declaring End Type used when declaring a set of data type of the data records, and each end of the declaration must be terminated with the End Type.
Comments Programming
Comments can be added to a program line by writing a single quotation mark (') in front of the statement that want to be expressed as a comment, the nature of this kometar will not be done, and just as a comment to the visual basic program and will not be menganggapnyanya as the code so it will not run.
Basic Concepts Programming
In a complex program will always find their branching and looping. For instance, if a circumstance A statement will happen then do B, but if it does not do statement C. This condition can be seen as a causal relationship, which can be called the cause of the state of A and B as a result of job 1 and job C as a result of 2 and so on , By using Visual Basic, branching process can be done with if statement and the case while looping in ms. Visual Basic can be done by the use Repeat statement, While and for.
If you do not have a program or software, please click on the link
Visual Basic 6.0 Download Free Full Version.