Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2008 Server
Hi Rich.
>So. Assuming that all of the following exist
>
>1. ON ERROR
>2. Form Error Method Code
>3.. Control Error Method Code
>4. TRY/CATCH code
>
>What is the sequence in which the error checking takes place?
Normally TRY takes precedence but if the TRY code calls a method of an object, that method causes an error, and that object has code in its Error method (or one of its ancestors do), the Error method is called. If it doesn't have code in Error, then ON ERROR executes. IOW, TRY only takes precedence for errors that occur directly in the code in TRY, not in methods called from TRY.
Doug
Précédent
Suivant
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