Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handling in vcx
Message
De
02/08/2018 16:23:34
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
02/08/2018 16:08:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01661417
Message ID:
01661425
Vues:
36
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform