Forum Discussion
AlexeyKolosov
Staff
14 years agoHi David,
First of all, note that JScript does not support multiple units natively. This functionality is a feature of TestComplete. So, nothing has been "broken". Also, I'm not sure how the original thread is related to inheritance and your task - it considered prototypes, not inheritance.
Anyway, you can use the following approach:
1. In unit A, define a function which creates the base object you need.
2. In unit B, type "USEUNIT..." and define a function which calls the method from unit A and adds the additional methods/fields to the returned object.
3. In unit C (which is supposed to use the inherited object), use the method from unit B to get the inherited object you need.