Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return to a method
Message
De
05/04/2006 20:22:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
05/04/2006 20:14:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01110818
Message ID:
01110827
Vues:
15
>I should probably ask the obvious question. If you were writing an error handler and therefore have ON ERROR blah...blah, if it is a fatal error and you do not want to return to the line below where the error occurred, where and how would you return to someplace else?

I am not so sure about error handling - in my case, the framework takes care of it.

In Visual FoxPro 8 (?) and later, you can use TRY ... CATCH, for a more modern error handling. But I think this is used for anticipating errors in specific places in your code; I am not sure how this would be applied for generic error handling, which I am sure you are talking about.

Perhaps a RETURN TO..., or RETURN TO MASTER, is indeed the best solution in this case - I am not sure.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform