XSharpXSharp
  • Home
  • Forum
    • Forum Index
    • Forum Rules
  • Articles
    • News
    • Blog
    • User contributions
    • Other articles
  • Downloads
  • Links
    • Examples
    • X# Tools Infominds
    • X# Documentation Website (User driven)
    • Phil Hepburns Enotes
  • Help
    • Why XSharp
    • FAQ
    • Online Help
    • Runtime & VO SDK documentation
    • XSharp Academy on Youtube
    • -------------------------------------------------------
    • Third party Help
  • Buy
    • Donations
    • The XSharp Corporate Sponsorship program
    • Online Shop
  • Contact
    • Login
    • Sitemap
    • Privacy Policy
    • Our Corporate Sponsors
    • Registration
  • Free software
    • XSharp Open Software License
    • Apache License
    • Antlr BSD License
    • Contributing
    • We believe in Open Source

XSharp Cahors 2.15.0.3

23 February 2023

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

  • wriedmann
    Saturday, 25 February 2023 06:32
    Thank you very much! Already working with it.
    Wolfgang
  • OhioJoe
    Saturday, 25 February 2023 16:10
    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.)
  • Chris
    Sunday, 26 February 2023 00:23
    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
  • OhioJoe
    Sunday, 26 February 2023 02:24
    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
  • Chris
    Sunday, 26 February 2023 10:09
    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.
  • steveferrandino
    Tuesday, 11 April 2023 15:39
    you can also enable "Allow the DOT for instance members" in Language settings and never have to think about this again

Login to post a comment

Create an account
  • Forgot your username?
  • Forgot your password?
  • +31651200522

Main menu

  • Home
  • Forum
    • Forum Index
    • Forum Rules
  • Articles
    • News
    • Blog
    • User contributions
    • Other articles
  • Downloads
  • Links
    • Examples
    • X# Tools Infominds
    • X# Documentation Website (User driven)
    • Phil Hepburns Enotes
  • Help
    • Why XSharp
    • FAQ
    • Online Help
    • Runtime & VO SDK documentation
    • XSharp Academy on Youtube
    • -------------------------------------------------------
    • Third party Help
      • ReportPro 2 User Guide
      • ReportPro 2 Developer Guide
      • ReportPro 3
      • Xs2Ado
      • Vo2Ado
      • Vo2Jet
      • Vo2Btrieve
      • SeuiXp
  • Buy
    • Donations
    • The XSharp Corporate Sponsorship program
    • Online Shop
  • Contact
    • Login
    • Sitemap
    • Privacy Policy
    • Our Corporate Sponsors
    • Registration
  • Free software
    • XSharp Open Software License
    • Apache License
    • Antlr BSD License
    • Contributing
    • We believe in Open Source