Introduction to VisualBasic Pogramming
Visual Basic is a programming language
that is considered one of the easiest to learn for programmers. The language is the closest to natural human language, making the computer “speech” the easiest to get started in programming Microsoft web forms or desktop forms. There are only a few basics needed to get started on the software programming language.
The sample below will guide you to get started using Visual Basic. Lets learn together.
Variables
Defining a variable is the first step for Visual Basic programming. In any programming language, defining variables gives the developer a method of saving calculation results and input from the user. Below is an example of how to define a string variable:
Dim strMyVariable as String
The “dim” statement is short for “dimension.” The term is used in defining any variable in the code file. Standards for development place defined variables at the top of the code file. The “String” term tells the compiler that the variable will be used to hold characters. The following code assigns a string value to the strMyVariable:
strMyVariable = “My First App.”
It’s important to assign the right type of entries to a variable. For instance, the code below would generate an error. The code tries to assign a number to a string variable.
strMyVariable = 0









