Information générale
Catégorie:
Codage, syntaxe et commandes
I'm not aware of a way to do this, it probably would be easier to check the places where you update. In a standard scenario you'd have a save method, and you could do the checking there. A problem I use to have is that TableUpdate() did not generate ab error, or rather, did not call my error handler, so I had to change my save method from:
if tableupdate()
*!* it worked
else
*!* it didn't, revert
endif
to:
if tableupdate()
*!* it worked
else
=aerror(aErr)
ERROR(aErr(1,1)) && I had to trigger the error myself
endif
that solved it for me, because basically my problem was that conflicts were not being reported at the time they occured, but until there was a record change or the tables where closed.
HTH
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement