For Each Row In DataGridView1.Rows If Row.Cells(8).Value <> 0 Or Row.Cells(8).Value <> "" Then Direction(y, 0) = (Me.DataGridView1.Rows(x).Cells(6).Value) Direction(y, 1) = (Me.DataGridView1.Rows(x).Cells(7).Value) TotalSelection = TotalSelection + 1 y = y + 1 End If Next
If Row.Cells(8).Value <> 0 Or Row.Cells(8).Value <> "" Then
If Row.Cells(8).Value <> 0 Then
For Each Row In DataGridView1.Rows If Row.Cells(8).Value <> 0 Or Row.Cells(8).Value <> "" Then Direction(y, 0) = (Row.Cells(6).Value) Direction(y, 1) = (Row.Cells(7).Value) TotalSelection = TotalSelection + 1 y = y + 1 End If Next
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionIf Row.Cells(8).Value <> 0 Or Row.Cells(8).Value <> "" Then
For Each Row In DataGridView1.Rows If Row.Cells(8).Value <> 0 Then 'Or Row.Cells(8).Value <> "" RowSix = (Row.cells(6).value) RowSept = (Row.cells(7).value) TotalSelection = TotalSelection + 1 Direction(y, 0) = RowSix Direction(y, 1) = RowSept y = y + 1 End If Next