Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error() - The Bubble Effect
Message
De
28/04/2000 08:40:15
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00364283
Message ID:
00364411
Vues:
18
Doug Hennig wrote a white paper about error handling that works exactly this way. You can find it at www.stonefield.com.


>Hi all,
>
>I have a command button that is looping through a table containing a list of table names. In the loop I am attempting to use each table exclusively. I want to use the Error() method of the button to trap for 1705. The problem is, once I add code to the error method, how do I make errors that I'm not trapping for bubble up to the form and on up the chain?
>
>cmdPump.Error()
>LParameters nError, cMethod, nLine
>
>Do Case
> Case nError = 1705
> ThisForm.lLoop = .t.
> OtherWise
> * What goes here?
>EndCase
>
>I've tried DoDefault() with the parameters, and I've also tried calling the parent error method. I've even used the Error command to manually rethrow the error. How am I supposed to do it?
>
>TIA
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform