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:
00429133
Vues:
25
It's not so much that it fails from an error... Basically, if the control is sized to small, there's not enough room for it to place all the objects. So when the main container inits, I have it get rid of its controls and replace it with a label that says the stuff in it wasn't able to init. This would never be seen by the end user unless the programmer is dumb enough to release it without making the control big enough. :)

It's just a safety net for the programmer.

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