Class is not a parent of this class: <class name>
Either of the following conditions could have caused this error:
- A class specified in a Sub New declaration is not the class from which this one is derived.
- A class specified using "dotdot" notation is not the class from which this one is derived.
For example:
Class BaseClassOne
Sub New (X As Integer)
End Sub
End Class
Class BaseClassTwo
Sub PrintIt
' ...
End Sub
End Class
Class DerivedClass As BaseClassOne
Sub New(Y As Integer), BaseClassTwo(x%)
' Illegal because BaseClassTwo is not the base
' class from which DerivedClass is derived.
' The appropriate base class is BaseClassOne.
End Sub
Sub PrintIt
' ...
End Sub
Sub CallPrintIt
Call BaseClassTwo..PrintIt
' Illegal because BaseClassTwo is not the base
' class from which DerivedClass is derived.
' The appropriate base class is BaseClassOne.
End Sub
End Class
Correct the reference to the base class.