22-degrees
Well-known member
In vbExpress2005 I have to declare the integer to use the for loop in one of 2 (that I know) ways:
or
In vbExpress2010 it is a simpler:
Today I re-opened an old vb2005 project and converted it to 2010 through the built in conversion feature.
However i notice that I can't use the simple for loop as I can in non converted vb2010 projects.. I still have to use the extra code to declare the integer.
Is this a natural thing or is there something I am not doing right?
Dim i as integer For i = 1 to 10 Next
or
For i as integer = 1 to 10 Next
In vbExpress2010 it is a simpler:
For i = 1 to 10 Next
Today I re-opened an old vb2005 project and converted it to 2010 through the built in conversion feature.
However i notice that I can't use the simple for loop as I can in non converted vb2010 projects.. I still have to use the extra code to declare the integer.
Is this a natural thing or is there something I am not doing right?