Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return to a specific method
Message
From
27/07/2006 15:55:49
 
 
To
27/07/2006 15:50:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01140833
Message ID:
01140861
Views:
12
>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?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform