Information générale
Catégorie:
Programmation Orientée Object
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
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