Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRY CATCH around large block of code
Message
De
10/04/2022 13:23:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01684140
Message ID:
01684141
Vues:
56
>Hi,
>
>I am thinking of enclosing a call to a function with TRY / CATCH. But this function calls many other function and other classed. Those called functions and classes may have their own TRY / CATCH. Will the new TRY / CATCH (around the large block of calls) fails because of the "internal" TRY / CATCH?
>
>TIA

You can nest Try/catch, although I haven't done it myself. Here's some articles on the subject. Scroll down to the sections about nesting.
https://www.codemag.com/article/0301072/Structured-Error-Handling-in-VFP-8
https://fox.wikis.com/wc.dll?Wiki~TryCatch
https://www.hectorcorrea.com/downloads/correatrycatchwhitepaper.pdf
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform