Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RETRY in TRY-CATCH
Message
From
25/02/2008 02:15:35
 
 
To
25/02/2008 01:09:31
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01295546
Message ID:
01295992
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform