473,473 Members | 1,984 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

Nov 11 '06 #1
4 4822

"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sugapablo | last post by:
I have a column named "LIST" in a table with strings like the following: 151231-1002-02-1001 151231-1001-02-1001 151231-1002-02-1002 151231-1003-02-1001 etc.... What I'd like to do is...
14
by: ford_desperado | last post by:
Why isn't ALLOW REVERSE SCANS the default? Why do we have to - drop PK - create an index - recreate PK What are the advantages of indexes that do not allow reverse scans?
4
by: Moojjoo | last post by:
I am building a dropdown select box for year and want to render the dropdown in reverse order. Using VB I could use step, but I am unsure how to do this in C# Any help would be great. if...
2
by: Rick | last post by:
Greetings, I'm looking for some VB.NET code to perform a Reverse Unique Rank on a list of numbers. I've used the rank and countif functions in Excel in the past and am in need of some VB code...
3
by: tcloud | last post by:
Is there a rule for the order of methods in the RichTextFind method? Through experimentation I found an order of the methods when doing reverse searches. Specifically, when searching reverse,...
11
by: Boni | last post by:
Dear all, following code iterates thru the hash table. Dim _Enumerator As IDictionaryEnumerator = _myhashtable.GetEnumerator While _Enumerator.MoveNext() ....
3
by: Dr John Stockton | last post by:
For an all-numeric Gregorian date to be intrinsically unambiguous, it must generally be of the form /\d{3,}\D+\d+\D+\d+/ ; and we've discussed handling that. But if the month is given in...
10
by: aatish19 | last post by:
1: Write a program that asks the user to input an integer value and print it in a reverse order Sample Output Enter any number 65564 Reverse of 65564 is 46556 2: Write a program that takes a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.