Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading a collection in reverse mode
Message
From
24/04/2007 17:42:45
John Baird
Coatesville, Pennsylvania, United States
 
 
General information
Forum:
ASP.NET
Category:
Common Language Runtime
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01219559
Message ID:
01219568
Views:
10
This message has been marked as the solution to the initial question of the thread.
>Michel,
>
>Off the top of my head, I don't believe you can do it "out of the box". Foreach internally only has a MoveNext method. However, at least in C# 2.0, you can write your own iterator. Here's a link:
>
>http://www.dotnetspider.com/kb/Article356.aspx
>
>It's in C#, so you'll have to check to see if the same thing exists in VB.NET (i honestly don't know if it does or not)
>
>kevin

Can't you do:
for (int i = myCollection.Count; i = 0 ; i--)
{
   myValue = myCollection[i];
}
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform