jeudi 29 octobre 2015

For loop with If condition - Iteration when if condition not met

I have this code where i want this for loop to iterate for each row. But this code get do not iterate when the if condition is false. I tried "continue" in else part.But it did not work. Even though if i place a msgbox in else part and click msg box at each time it display then the loop continue. but it is not practical as I have 1000s of rows to check on.

For i = 0 To CustomerDataSet.customer.Rows.count - 1
If i<2 Then
 'Do somethin'
End If
Next

Pleaes help me to make this for loop continue without any user interaction.

Aucun commentaire:

Enregistrer un commentaire