Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why TRY...CATCH…FINALLY not support RETRY ?
Message
From
11/08/2003 19:34:48
 
 
To
11/08/2003 19:17:05
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00818569
Message ID:
00819209
Views:
16
>>>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.
>
>But couldn't we turn it around, Fred, and say that WITHOUT TRY...CATCH VFP would know exactly where to RETRY, so couldn't it just keep that logic (of where retry should be done) upon entering TRY...CATCH logic? Then a RETRY within a TRY...CATCH would know where togo.

Sure, it may actually BE quite easy to implement. I don't know, and neither does Fabio. He should submit it as a Wish item. I didn't say it wasn't a good idea. ;)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform