|
The Basics of Visual Basic
Home » Visual Basic » Introduction to Visual Basic
The Basics of Visual Basic
A great tutorial for people that are starting out with visual basic and need to get a rock solid start. Described are loops, conditionals and variables.
Okay, Visual Basic.. what an application. Its so simple to get programs up and running (usually a point, click, drag, type and run =D).
Variables
Variables in VB are declared with the dimension keyword..
Code
Dim variable_name as string
..also you will notice that after the "Dim", then the name there is an "as string" statement. This means that the variable that I declared is of variable type string. This is basically some text. Some other variable types include integer, double, currency, boolean, etc.
Conditionals
The IF statement can help you tell if the a value is equal to something, or not.
|
More Tutorials by this user
|
|
|