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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top