Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why TRY...CATCH…FINALLY not support RETRY ?
Message
De
11/08/2003 17:06:05
 
 
À
11/08/2003 12:28:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00818569
Message ID:
00819161
Vues:
24
>Hi Bob,
>
>No this simulate the retry with a external cycle.
>
>I want retry on try error line directly.
>
>example:
>
>
>PROCEDURE A
>1 TRY
>2  B()
>3 CATCH
>4  * RESOLVE ERROR OPERATION 1
>5  RETRY && THIS RESTART CODE ON LINE 2
>6 ENDTRY
>
>
>7 PROCEDURE B
>8   ERROR OPERATION 1
>9   TRY
>10    ERROR OPERATION 2
>11  CATCH
>12    * RESOLVE OPERATION 2
>13    RETRY && THIS RESTART CODE ON LINE 8
>14  ENDTRY
>
So what if you had a line 2a that was C(). Now where does the RETRY restart at if TRY only knows about a block of code? Guess it could be done, but it might be a bit presumptuous on your part to say that it's an easy thing to implement.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform