Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control init fail, class init fail
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00428995
Message ID:
00429122
Vues:
18
>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
Fil
Voir

Click here to load this message in the networking platform