Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Handling Priority
Message
De
29/09/2013 11:34:26
 
 
À
25/09/2013 12:49:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01584109
Message ID:
01584426
Vues:
89
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
Fil
Voir

Click here to load this message in the networking platform