Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapters, tableupdate and exceptions
Message
 
 
À
28/02/2005 02:37:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00990002
Message ID:
00991171
Vues:
16
>>Remove or comment your code from the BeforeUpdate before trying my suggestion
>
>Mark,
>
>thanks for your suggestion, but the whole point was to have the BeforeUpdate checking whether the update is actually legal (i.e. the user has the required rights, the social security number is in a valid format etc), and if not throw an exception explaining what went wrong.
>
>Eyvind.

If your BeforeUpdate is throwing an exception, you should handle logging the error in that method and RETURN .F. from that method to stop the TABLEUPDATE. Your BeforeUpdate is returning an implicit .T., so your table update is continuing for that record.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform