Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On error ...loop
Message
 
À
06/04/2001 14:13:53
Bob Clark
Complus Data Service, Inc.
St. Petersburg, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00492971
Message ID:
00492984
Vues:
23
>I've got a program that is gonna take about a day to run. It's basically one big for/next statement that does the same thing about 20 times to different datasets. Since I don't want to wait around watching this thing for 10 hours....if it encounters an error I want it to simply move on the next data set and I'll figure out the error the next day. What I need is "on error loop" but that doesn't work. (Nesting error) Any ideas would be appreciated.
>
>Thanks,
>-Bob

Create a procedure that uses aerror() or any of the other functions to grab the error message and log the information to a table. Then issue ON ERROR command at the appropriate place at the top of the loop or just before the loop starts.
The any error that occurs will be logged to a table and you can deal with it later.
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform