Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling errors inside a transaction
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Handling errors inside a transaction
Divers
Thread ID:
00523402
Message ID:
00523402
Vues:
32
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!"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform