|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
for each step order reverse direction ?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 "Jason"
> How can I loop through in reverse order .. Not looking to sort or For i as integer = tc.Controls.count to 0 step -1> anyting. > > Dim fr As FormViewRow = > (CType(whichformview.Controls(0).Controls(1), FormViewRow)) > Dim tc As TableCell = fr.Cells(0) etc. I hope this helps, Cor Cor,
I'm sure you meant: For i as integer = tc.Controls.count - 1 to 0 step -1 Kerry Moorman Show quoteHide quote "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 > > > 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 Show quoteHide quote "Kerry Moorman" <KerryMoor***@discussions.microsoft.com> schreef in bericht news:97F66971-F945-4E05-8FA2-892247617EA4@microsoft.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 >> >> >> Kerry,
To prevent that it happens again to me, http://www.vb-tips.com/dbpages.aspx?ID=ae0f1099-86ce-4d3e-9122-ee18edae8295 Cor Show quoteHide quote "Kerry Moorman" <KerryMoor***@discussions.microsoft.com> schreef in bericht news:97F66971-F945-4E05-8FA2-892247617EA4@microsoft.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 >> >> >>
Location for shared Access database
Make copy of arraylist newbie: is this the appropriate use of a class? Getting the current procedure name? String manipulation question single line string maninuplation substring, trim, indexof ? Installing .net assemblies windows installer About Access Windows Service information Function to measure text length How to properly "name" a class library? |
|||||||||||||||||||||||