>I have a custom class based on a container. If one of the controls inside fails to init, I want the whole container not to init. Or maybe do some other action at the container init level. Since the container inits last, is there some way to pass its init event a message that one of its objects failed?
>
>Thanks,
>
>Michelle
I was wondering if the control.Init fails because of an error or because it is supposed to return .F. sometimes. If the former, what does your error handler do? The solution should be related to that. But I'm no expert on error handling. Books such as the Hacker's Guide will say "you could write a whole book about error handling in VFP, and someone should." Then they don't say much more about it.
If the latter, you could still raise an error and let your error handler set the property or whatever, maybe.
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