Information générale
Catégorie:
Codage, syntaxe et commandes
>>Somewhere in my application I want to completely ignore the most recent >>result returned by AERROR() in order to start checking for new errors >>only, but when I call this function after succesfull commands, it will >>always consider the last error and will return a value > 0 .
>>Is there any way to 'reset' this function or something like that ?
The only thing you could do is use ON ERROR to call a routine that sets a appplication wide flag eg.
ON ERROR DO LogError
FUNCTION LogError
oApp.lDidErrorOccur=.T.
Then you just test this value to see if you should call AERROR(). Before you start a particular routine you set lDidErrorOccur to .F.
Gary.
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