Dim C As String
For...
C = "A"
Next
C = ""
no i mean i want in Next the C variable same like in For,in this case the value is A... i cann't set the value because the variable change dynamiclyi think....VB.NET:Dim C As String For... C = "A" Next C = ""
Dim var As Integer = 0
MessageBox.Show(var.ToString()) 'Shows "0".
For i As Integer = 1 To 10
var = i
MessageBox.Show(var.ToString())
Next i
MessageBox.Show(var.ToString()) 'Shows "10".
Dim arr(10 - 1) As Integer
For i As Integer = 0 To arr.GetUpperBound(0) Step 1
arr(i) = i * 100
Next i
'arr now contains all the values assigned in the loop.
For Each var As Integer In arr
MessageBox.Show(var.ToString())
Next var