Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to handle errors
Message
 
 
À
27/11/2001 13:21:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00586384
Message ID:
00586530
Vues:
17
I never even thought about adding a property to the class. Doh! It's taking me a little while to get my head around this new way of doing things. :)

Thanks to everyone for the suggestions. Since they're all pretty similar, I'll just CC this thank you.

As to the changes to the "old way", yeah, I know to save the error handler. I was just trying to keep it simple.

Thanks,

Michelle


>First, I don't think there is necessarily anything wrong with the "old way". Except see changes below (you may already do this in "real life").
>
>Another way to do it is to have an error flag property in your application object. Or, you can have an error manager object (a private variable, created in your main program). The error handler would set properties in these objects. Again, see changes even further down.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform