Page 1 of 1

Problem with strings in inherited forms.

Posted: Mon Dec 07, 2009 12:25 pm
by danysz
I create a form with some components and strings
I create a new form that is inherited from the first one.
I add some strings to the "child"
If I take care to use different ID's in the child (by default it creates same id like in the parent form) doesn't solve the problem.

I will be glad to post here also the example of the application to see the bug.

Re: Problem with strings in inherited forms.

Posted: Fri Feb 26, 2010 2:10 am
by Jean-Paul Brassard
danysz wrote:I create a form with some components and strings
I create a new form that is inherited from the first one.
I add some strings to the "child"
If I take care to use different ID's in the child (by default it creates same id like in the parent form) doesn't solve the problem.

I will be glad to post here also the example of the application to see the bug.
Hi,

To properly solve the inheritance problem, we do not duplicate parent strings in all its child. Instead, we dynamically (run time) add those parent strings to the child`s collection at Form openning.