XSharp Cahors 2.15.0.3

Today we have released an installer (for our FOX subscribers) for XSharp Cahors 2.15.0.3 which contains some fixes for problems reported with X# 2.14, and some new features.

The what's new document describing all the changes can be found here:

XSharp 2.15 what's new
Popular 2.15.0.3 614.06 KB
2023-02-23

{rsfiles path="fox/Compiler/XSharpSetupFox2.15.0.3.zip"}

There is NO public release 2.15 planned.
 


6 comments

  • I have a function that was altered from the original VO code.Γö¼├íΓö¼├í After upgrading to 2.15.03 I'm now getting the following error:

    FUNCTION XGetIPAddress( ) AS STRING STRICT
    LOCAL cHostName:=System.Net.Dns.gethostname() AS STRING
    LOCAL cIP:= System.Net.Dns.gethostbyname(cHostName).AddressList[1].ToString() AS STRING
    RETURN CIP


    The line beginning with "LOCAL cIP" now throws the following errors:
    error XS9112: You cannot access the instance member 'AddressList' with the DOT '.' operator.
    error XS9112: You cannot access the instance member 'ToString' with the DOT '.' operator.

    Here is the original VO code

    LOCAL cIP AS STRING 
    cIP := GetIPAddress( cComputerName )
    RETURN cIP


    Any help would be appreciated.  As always.  Thank you.  -- Joe

    (If this comment needs to be moved to another section of the forum, please do so.)
  • Joe, both AddressList and ToString() are instance members of their classes (not static ones), so you need to use a colon to access them:

    LOCAL cIP:= System.Net.Dns.gethostbyname(""):AddressList[1]:ToString() AS STRING
  • Chris, this is the place where some insufferable know-it-all would say: "Well then, explain why it worked before ... "
    But not me!  First of all, I'm too dumb for that.  And secondly, I just appreciate your timely and spot-on support.  As always.
    -- Joe
  • Joe, well this is a very valid questionΓö¼├í:)
    Answer is that it was a bug in previous versions of the compiler, it should had reported an error also before.
  • you can also enable "Allow the DOT for instance members" in Language settings and never have to think about this again