Inconsistent error on non-existent method

Discussion in 'Bug Reports' started by agraham, Jan 22, 2008.

  1. agraham

    agraham Expert Licensed User

    Although perhaps not a bug as such I am raising this in case it is an indication of an underlying problem. If you try to call a non-existent method on different controls you get different bahaviour. Usually it is ignored but a TextBox gives an error. I haven't tested all the controls.

    Sub App_Start
    ' is ignored
      Button1.NoSuchOp   ' is ignored
      TextBox1.NoSuchOp ' gives "object reference not set to an instance of an object"
    End Sub
  2. Erel

    Erel Administrator Staff Member Licensed User

    It happens because of small differences in the controls implementations.
    It will be fixed in a future version so each missing method will show a meaningful error message.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice