C
Caddberry
Guest
It has been awhile since i had touched visual basic but now i am in a class "Intro to VB" just for kicks.. anyway doing the first project i declared variables like this
Dim X, Y, Z, As integer
the program didnt seem to like that very much as it completely messed up.. when i did it like this :
Dim X As Integer
Dim Y As Integer
Dim Z As Integer
The freaky thing worked.. i swear i declared them like this before.. might it have something to do with the Option Explicit or some kind of global declarations?
Needless to say i finished my project ..
i got the thing working but i thought you could do that with commas seperating the names.. maybe i am thinking of Pascal..
Dim X, Y, Z, As integer
the program didnt seem to like that very much as it completely messed up.. when i did it like this :
Dim X As Integer
Dim Y As Integer
Dim Z As Integer
The freaky thing worked.. i swear i declared them like this before.. might it have something to do with the Option Explicit or some kind of global declarations?
Needless to say i finished my project ..