>hi everyone:
>
>quick question here. i have a class of an optiongroup with 5 buttons. is there a way to subclass that and then delete one of the buttons? foxpro is giving me an error message and i just thought i would see if there's an easy way to do this that i'm missing. or, is the only way to create a class with 2 buttons and then create 2 subclasses, one with 5 and the other with 4?
>
>i'm going back into my applications and starting to use classes in them so that i can make changes quickly throughout the application.
>
>thanks,
>
>paul
One principle of inheritance is precisely that you can add stuff, but not deleted stuff, in lower levels of inheritance.
I think you could remove the objects at runtime (RemoveObject?), but not at design-time.
Making them invisible is usually the simplest solution.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)