Visual Basic programming language just like any other programming language is a paradigm that exposses how the world think.
When i say Paradigm, i mean " a way of thinking". Okay, let me further explain.
Visual Basic is an object oriented programming language. With Visual Basic, we deal with objects. Objects, just as we have in the real world today. represents everything we see, feel or touch. Take for example, a car is an object that has various parts or features. I will call this parts as its properties and each properties exposes their own functions. An aeroplane is another object with lots of properties. We can go on with so many list but one thing is certain, what makes an object unique from another is the property and each properties has its own function. A car has tires that gives motion e.t.c
So what? How do we then interprets objects in Visual Basic, Recall earlier that i said, in Visual Basic Programing language, everything is object. Meaning that each of these objects exposes their own properties and functons. As we go deeper with the course of our lessons, u'll get a clearer view on how visual basic deal or represent objects.
One advantage that u'll have as a visual Basic programmer is the simplicity the language poses when it comes to application development . Visual Basic codes are easy to understand and because of this, it is easy to implement. Apart from this, there is also an integrated development environment (Microsoft Visual Studio) that provides visual tools which aid in rapid application development and deployment. Let's not waste so much time, but to get down with the real thing "Learning Visual Basic Programming"
Visual Basic - What you need
All you need do is to install the latest version of microsoft visual studio which is Visual Studio 2008 or a later version - Visual Studio 2005 preferrably.
Visual Basic happens to be one of the four .NET languages that will be installed along with Visual Studio. Others are Visual C#, Visual J# and Visual C++. For more information on the .NET technology visit www.programmingwithvisualbasic.blogspot.com.
With Visual Studio installed, ew can now begin learning visual basic programming language.
Visual Basic HelloWorld Application
Start Visual Studio
- Click File then New Project
- Make sure that Visual Basic is the choosen language in the New Project dialog box that appears.
- Select Console Application template from the template pane of the New Project dialog box
- Type "myFirstApp" in the Name textbox area as the name of the project and click on OK.
When the project is created, you will see the code below:
Module Module1
Sub Main()
End Sub
End Module
This Visual Basic code were created by the IDE, we want to create a simple console application that prints "Hello World!" to the screen of your monitor.
Type the tollowing statements between the Sub Main() and End Sub
.....................
Sub Main()
Console.Writeline("Hello World!")
Console.Readline()
End Sub
End Module
Press F5 or click on the 'start debugging' icon on the toolbar(like a play button) and there you go, your first Visual Basic Program. Now, to explain so bit of the program.
The visual basic statement below, prints whateve appears within its brackets on the monitor screen. i.e
Console.Writeline("Hello Johnson")
the above statement will print Hello Johnson on your monitor screen.
The next Visual Basic statement persits the output screen. Try this, type the apostrophe sign infront of the last statement i.e
' Console.ReadLine()
then run the program. What happens? Remove the apostrophe and Run again.
The apostrophe sign is use in Visual Basic for writing or specifying comments.
The above program is an initialization process, we'll now begin our lessons that will take us through Visual Basic...
No comments:
Post a Comment