Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling in vcx
Message
From
02/08/2018 16:23:34
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
02/08/2018 16:08:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01661417
Message ID:
01661425
Views:
35
>Ok I understand, but I have a problem as I am working with sql server 2008 at the time of saving the data, I do it in several tables and for this reason many objects and recordset until I get to where I give the commit or endtrans for the same reason of those methods return 1 or 0 depending on whether it is correct or incorrect, then those returns I think can not be inside the try..catch block

Right, so that's why I mentioned clean exit. Just signal to yourself that something's wrong, rollback the transaction, then close the form. The try-catch block should only isolate the error and create the signal.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform