Tuesday, January 25, 2011

Declaring variables in Visual Basic

To declare a variable in Visual Basic you use Dim and then set the variable to what you want, ex;

1:  Dim Frogs as String 
2: Dim Frogs as Boolean = True
3: Dim Frogs as integer = 4
4: Dim Frogs as decimal = 2.6

No comments:

Post a Comment