I found this during porting from TD15 to TD61 in the case that the sequence of the classes in the "Derived from" section are switched.
Still present in TD7.0
Situation, see screenshot:
There are two base classes, each having one instance variable.
There is a class which derives from those two base classes.
To set and get the value of the two instance variables you do for instance:
Code: Select all
Set nMyMode = 1234 Set nMyDummy = 9000
A valid qualification for the point of view of an instance of the third class is:
Code: Select all
But it depends on the sequence of the classes in the derive from section.
When class ClsDlgBase_Mode is the first item in the section, the qualification to this class is ok.
But then the other qualification to class ClsDlgBase_Dummy will fail.
In the case of the example, the variable nMyDummy has the same value of nMyMode !!!
When switching the sequence of the classes in derived from, the issue is the other way around.
Then nMyMode will have the value set on nMyDummy !!
IMHO this is wrong.
I post this (even when this issue is found on TD15 up to TD61) to have this designated as defect.
But also to show others that this issue is present and be aware of this.
So it could be fixed or at least mentioned in the documentation on qualification.
When not aware you can get unpredictable results and look for the reason which has cost me quite some time to find.
- run and see the values for the both variables
- switch the classes in de defived from section
- comment the instance of the dialog and uncomment it (to force recompilation)
- run and see that the issue for the variables is the other way around.
Testcase is in TD15 format to be used in all TD versions.