Show/Hide Toolbars

XSharp

Type '{0}' does not have a {2} '{1}'. This gets resolved to a late bound {2} {3}.

This warning will only appear when compiling in the FoxPro dialect when the /lb compiler option is not enabled.

 

For example

FUNCTION Start as VOID
  local o as USUAL
   o := Foo{}
 
   o:Bar := "Test"   // warning XS9098: Type 'USUAL' does not have a property 'Bar'. This gets resolved to a late bound property assign.
   ? o:Bar           // warning XS9098: Type 'USUAL' does not have a property 'Bar'. This gets resolved to a late bound property access.
   ? o:Hello()       // warning XS9098: Type 'USUAL' does not have a method 'Hello'. This gets resolved to a late bound method call.
 
  WAIT
  RETURN
 
CLASS Foo
  PROPERTY Bar as STRING AUTO
  METHOD Hello as STRING
      RETURN "Hello "+Bar
END CLASS  

This code will generate 3 warnings when compiled in the FoxPro dialect if the /lb compiler option is not enabled