Hi David,
I am a little confused about your answer:
>It is impossible to assign an existing ODT object to a property of an object type.I am actually doing this, when not storing the reference toggle in an extra routine.
h_testenvironment := Self.Testenvironment;
Self.Testenvironment := NIL;
Self.Testcases[h_i].Testenvironment := h_testenvironment;
h_testenvironment := NIL;
(and vice versa)
>
You need to remove old objects and create new objects instead of switching references.
Switching references works! But my posted routine is not working, because of this "Self"-Problem.
So my two questions are still open:
- Any suggestions how to bypass this situation?
- Is there an integrated way to clone objects? (because I do not change the object properties, I only read their values)
If I got something wrong, please explain in more detail, maybe with examples.
Thanks,
Dirk