Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
YAQ on nested TRY
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
YAQ on nested TRY
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01400278
Message ID:
01400278
Views:
172
Hi,

I know now, from another thread I posted, that TRY can be nested within another TRY. Now I am wondering how VFP will process error in the following situation:
TRY
*-- start of SQL Select and then long process of the records in the QUERY of this SQL Select

*-- Somewhere within this process a report is printed and I enclosed it in a TRY
    TRY 
          *-- print report
   CATCH to oErrObj1
          *-- process error
   ENDTRY

*-- Procedure continues 

CATCH to oErrObj2

ENDTRY
My question is, when an error is processed by the CATCH to oErrObj1 and its ENDTRY does it continue to the line after the ENDTRY or automatically goes to the CATCH to oErroObj2?
"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
Next
Reply
Map
View

Click here to load this message in the networking platform