Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
[VFP7](Re)setting/not using the AERROR() array
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
[VFP7](Re)setting/not using the AERROR() array
Divers
Thread ID:
00781438
Message ID:
00781438
Vues:
51
Situation:
An error handler that looks at the number of errors returned by the AERROR() function. (if > 0 continue; else return)
This handler is explicitly called, and is not in the 'ON ERROR'-handler.

Problem:
I want to be 'dirty' and ignoring any errors that might occur (I don't want any error messages), so I use the following code:
cOldErr = ON( 'ERROR' )
ON ERROR *
GO nRecno IN (cAlias)
ON ERROR &cOldErr
After this, the error-function is called, and it fires with the message: 'Record is out of range'.
The AERROR() returns this error.
This message is a result from the GO nRecno ... command.

How can I clear/not use/overwrite ('not use' preferably, because before the specific code an error occurs which I want to see in my message) the error array?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform