Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading a collection in reverse mode
Message
De
24/04/2007 17:42:45
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
24/04/2007 17:24:47
Information générale
Forum:
ASP.NET
Catégorie:
Common Language Runtime
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01219559
Message ID:
01219568
Vues:
6
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];
}
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform