Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling errors inside a transaction
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Handling errors inside a transaction
Miscellaneous
Thread ID:
00523402
Message ID:
00523402
Views:
31
How can i "friendly" handle errors inside a transaction?

I was thinking about something like this:
xOldError = ON("ERROR")

BEGIN TRANS

ON ERROR xError = .T.

&& inserts, updates and stuff go here

if xError == .T.

&& not sure about what to put in here!!!

endif

ENDTRANS

ON ERROR &xOldError
Any help is welcome.

TIA,

Alonso
Like Frank said: "I did it... MY WAY!"
Next
Reply
Map
View

Click here to load this message in the networking platform