Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOR EACH bug
Message
 
À
07/03/2003 02:05:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00762002
Message ID:
00762917
Vues:
10
>>It's not a bug it's just a way collection works.
>
>Yea. You're right. I've checked collections in C# .NET and trying to remove item in foreach() throws exception.
>
>Well, I thought "for each" means "for each" not "for every the second" ;)

Well, think of it as an indexed array. When you delete Item #1, every item moves backward, so that #2 is now #1, #3 is #2, etc. After you've deleted #1, you don't need to delete it again, so you move to #2, which used to be #3.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform