By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 943 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

for each step order reverse direction ?

P: n/a

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

Nov 11 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"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
Nov 11 '06 #2

P: n/a
Cor,

I'm sure you meant:

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

Kerry Moorman

"Cor Ligthert [MVP]" wrote:
>
"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
Nov 11 '06 #3

P: n/a
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

"Kerry Moorman" <Ke**********@discussions.microsoft.comschreef in bericht
news:97**********************************@microsof t.com...
Cor,

I'm sure you meant:

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

Kerry Moorman

"Cor Ligthert [MVP]" wrote:
>>
"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

Nov 12 '06 #4

P: n/a
Kerry,

To prevent that it happens again to me,

http://www.vb-tips.com/dbpages.aspx?...2-ee18edae8295

Cor

"Kerry Moorman" <Ke**********@discussions.microsoft.comschreef in bericht
news:97**********************************@microsof t.com...
Cor,

I'm sure you meant:

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

Kerry Moorman

"Cor Ligthert [MVP]" wrote:
>>
"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

Nov 12 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.