Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRY CATCH around large block of code
Message
 
 
À
11/04/2022 05:04:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01684140
Message ID:
01684145
Vues:
41
>>>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
>>
>>Yes, as you were posting, I tried to update my message. I created a test.prg with a TRY and then another TRY within the 1st one, and then another TRY withing the 2nd one. And no problem.
>
>Actually there's an additional benefit: if there's an error in one of the inner catch blocks (because nobody's perfetc), next outer try will catch it.

This is what I am thinking could help me to "catch" the error.
Thanks.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform