Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to reset AERROR() ?
Message
De
05/12/2002 03:32:58
 
 
À
04/12/2002 21:54:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00729740
Message ID:
00729783
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>>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
Fil
Voir

Click here to load this message in the networking platform