For Next Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. I have a For...Next statement similar to the following, which is
executed against a datatable's(dt) row count.

For i As Integer = 1 To dt.Rows.Count
'Do something with the DataTable row
Next

Currently this statement just moves from one record to the next. But I need
to update this so that I can specify the row number to begin with. For
example, sometimes I may need to start with row#5 or row#10. Can I update
this syntax to allow this? Thanks.
 
Back
Top