DIM is used to dimensionalise a variable, that is set memory aside for the variable to be stored. It is used thus
- DIM Number1 as Integer
- DIM Number2 as Integer
However this can be shortened to
- DIM Number1, Number2 as Integer
In this case VB(Express Edition) sets number1 & number2 to integers. A more complex example can be seen below
- DIM StrName as String
- DIM Number1, Number2 as Integer
Becomes
- DIM StrName as String, Number1, Number2 as Integer
You need to be careful that you get your syntax correct. It might be easier at the start to stick with the traditional(top) method.