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.

    Code:
    Sub App_Start
      Form1.Show
      Label1.NoSuchOp   
    ' 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.
     
Loading...