Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Triggers and stuff
Message
De
18/02/2004 07:52:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00878099
Message ID:
00878236
Vues:
12
>Thanks, that will be useful. What I cant figure out is how to bypass the trigger failed. Basically, I just want to automatically revert and then display a brief wait window message with timeout.

In my case, the framework takes care of that, and shows some weird error message, therefore I intercept an error condition before the trigger fires. Specifically, a user-friendly translation of "trigger failed" is not enough; I also want to show the user in which table there are related data.

Otherwise, I think it can be done in the error handling; but I am not so sure about the details.

I think the idea is to use buffering; save data with TableUpdate(); check the return value of TableUpdate(); and if it fails, use aerror() to get error details.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform