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:
00493220
Vues:
17
>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

Bob,

I think you have a situation where the RETURN TO [MASTER | ProcedureName]command would be helpful, if you organize your program appropriately. This would allow your error handler to pop the stack out of the offending sub-program and return directly to the main program, where the outer loop processing could resume. This sort of "localized Abort" is a useful general feature I've incorporated into my error handling classes (see http://www.ideaxchg.com/ix07/er/_sys/toccontu.htm).

Mike
Montage

"Free at last..."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform