Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return to a specific method
Message
From
27/07/2006 16:02:37
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01140833
Message ID:
01140867
Views:
15
Not clear what yo are saying though.
All I want is to get back to the begining of processing in case of falure.
Thre are many calls to other methods between that point and a point of the failure.
>>In my case I dont need to guess what object to get back to. I know that. I am not sure if it would have been 100% safe to jump back to that object from any failure in the program. That's my problem. It's going to be very hard to test something like this.
>
>If instead of direct sql you would use function like RunSQL, then you would know that your select failed and would act accordingly.
>
>Otherwise I don't see a simple way to proceed
>
>say:
>
>try
>  myobject does something
>  some select
>  another select
>  ...
>catch to loEx
>endtry
>
>if one of the select fails, you would be trown out of the original code sequence.
>
>Or what exactly are you talking about?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform