Well take a look at the structure of a basic for loop:
Code:
For counter [ As datatype ] = start To end [ Step step ]
Next
For - Starts the loop
counter - The control variable for that loop
[As DataType] - the datatype will be a numerical datatype
= start - Set the start value of the counter
To end - Where do you want it to end at
So a for...next loop to count from 1-10 would look like this:
Code:
For i As Integer = 1 To 10
Next
To count backwards we include the Step, which will be after the 'To end'.
Code:
For i As Integer = 11 To 2 Step -1
Next
The negative 1 says that we will decrease by 1, if it was -2 then it'd decrease by 2, if it was positive 1 then it'd increase by 1.