Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return to the top of a foreach loop
Message
De
15/01/2007 12:07:55
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01185290
Message ID:
01185645
Vues:
16
Linda I think others already reply to that, you need to use Continue;

>Bonnie,
>
>I tried using break and it exited the loop entirely. I want to keep looping through the rest of the records and just skip the one with the error. The only thing I can think of is to move all the code inside the loop to another method and use return to go back to the loop.
>
>Do you have a better idea? Thanks.
>
>Linda
Alexandre Palma
Senior Application Architect
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform