Compilation error

Hi ,I get an compile error , cannot find a project or a library ,with the following line highligted in the code ,Implements ISubclass.


Answer this question

Compilation error

  • AlistairSKing

    Is this class in the the project or in a library

    If its in the Project you need to ensure that it has Public or Friend scoping. I think the default scoping is friend.

    If its in a class library that you are using you need to ensure that the class has Public scoping. If you specified friend or didnt specify any and it uses the default friend then it wont be visible to the Application.


  • pompoko

    Do you have the implements statement on your properties, sub, or functions

    Public Interface ISubClass
    Function MyFunction() As Integer
    Sub MySub()
    End Interface

    Public Class TheTestClass
    Implements ISubClass


    Public Function MyFunction() As Integer Implements ISubClass.MyFunction
    Return 0
    End Function

    Public Sub MySub() Implements ISubClass.MySub

    End Sub

    End Class



  • poiuytrewq

    I Do have the class module defined by that name.rishi

  • CharlieRussell

    If ISubClass is defined in another namespace you will need to import it for the compiler to recognize it.

    Imports TheNamespace.WithSubClass



  • LpAngelRob

    In order to implement ISubClass you need to have ISubClass defined in your code or have it in a dll you referenced.


  • Compilation error