Make property in container, for example, lError. In the Init of control, if it fails, set this property to .T. In the Init of container check this property, if it is .T. - one of the controls inside failed.
>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
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.