for each step order reverse direction ?

J

Jason

How can I loop through in reverse order .. Not looking to sort or
anyting.

Dim fr As FormViewRow =
(CType(whichformview.Controls(0).Controls(1), FormViewRow))
Dim tc As TableCell = fr.Cells(0)
For Each c As Control In tc.Controls
 
C

Cor Ligthert [MVP]

"Jason"
How can I loop through in reverse order .. Not looking to sort or
anyting.

Dim fr As FormViewRow =
(CType(whichformview.Controls(0).Controls(1), FormViewRow))
Dim tc As TableCell = fr.Cells(0)
For i as integer = tc.Controls.count to 0 step -1

etc.

I hope this helps,

Cor
 
G

Guest

Cor,

I'm sure you meant:

For i as integer = tc.Controls.count - 1 to 0 step -1

Kerry Moorman
 
C

Cor Ligthert [MVP]

Kerry,

I am glad you corrected me, I was writing this and thought there is
something wrong, I was a little bit blind it seems.

Thanks,

Cor
 

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

Top