Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RETRY in TRY-CATCH
Message
De
25/02/2008 02:15:35
 
 
À
25/02/2008 01:09:31
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01295546
Message ID:
01295992
Vues:
18
That's what I eventually came up with. My original thoughts had been tunnel-visioned on using ON ERROR within a TRY-CATCH. Didn't stop to think you could nest them until well after I had started the thread.


>how about
>TRY
>   some code
>
>   TRY
>      lcFile = MyGetFileRoutine()
>      USE (lcFile)
>
>   CATCH WHEN "can't open file"
>      lcFile = MyGetAlternateFileRoutine()
>
>   CATCH TO oErr
>      THROW oErr
>
>   ENDTRY
>
>   more code
>
>CATCH
>   do the normal CATCH programming
>
>ENDTRY
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform