Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

XSharp.Tools.WPF: depend on XSharp.VO? 18 Sep 2018 07:32 #6231

  • wriedmann
  • wriedmann's Avatar
  • Topic Author


  • Posts: 3366
  • Hello,

    should the XSharp.Tools.WPF library depend on the XSharp.VO library or only on on the XSharp.Core library?

    Cons:
    • for a new application, VO datatypes could be left behind
    • a WPF application could also be written in other languages, using the XSharp.Tools.WPF library
    Pros:
    • even in a WPF application I would see the Transform() function as needed - and this function is in the XSharp.VO library
    • a WPF application should also be able to use our older business logic that may make use of the Date datatype, codeblocks, arrays or the AScan()/ASort() functions
    • the internal code of the library will be smaller and faster if functions from both libraries can be used
    Personally, I would go for a dependeny on both XSharp.Core and XSharp.VO libraries - I have to admit that it boosted my productivity when I started to use the X# runtime in my pure X# applications.

    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

    Please Log in or Create an account to join the conversation.

    XSharp.Tools.WPF: depend on XSharp.VO? 18 Sep 2018 08:49 #6232

    • Juraj
    • Juraj's Avatar


  • Posts: 159
  • Hi Wolfgang

    In my opinion, it would be best to have a XSharp.Tools.WPF library in Core dialect, and this would contain the maximum amount of the VO function transcribed in Core dialect. It was one of the first libraries I wrote in XS that emulated the most used functions from VO (like Str (), WorkDir (), Left (), Right (), Val (), Len () .... ).

    Juraj

    Please Log in or Create an account to join the conversation.

    XSharp.Tools.WPF: depend on XSharp.VO? 18 Sep 2018 09:12 #6233

    • wriedmann
    • wriedmann's Avatar
    • Topic Author


  • Posts: 3366
  • Hi Juraj,

    that is what I tought first, but when I discovered that the Transform() method is in the XSharp.VO library (because of the support for Date and Usual).
    And IMHO a Picture property is absolutely essential to every business application - and that needs the Transform() function.
    In my first X# applications, I had rewritten also all these functions, but now I'm returning to the versions of the runtime - it makes much more sense to me.

    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

    Please Log in or Create an account to join the conversation.

    XSharp.Tools.WPF: depend on XSharp.VO? 18 Sep 2018 13:37 #6237

    • Juraj
    • Juraj's Avatar


  • Posts: 159
  • Hi Wolfgang,

    I tried to convert one small WPF app from core dialect to VO dialect. I just had to fix more "." to ":" otherwise everything worked OK. Is there anything in Core dialect that will not work in VO dialect?

    Juraj

    Please Log in or Create an account to join the conversation.

    XSharp.Tools.WPF: depend on XSharp.VO? 18 Sep 2018 13:48 #6238

    • wriedmann
    • wriedmann's Avatar
    • Topic Author


  • Posts: 3366
  • Hi Juraj,

    Is there anything in Core dialect that will not work in VO dialect?


    The VO dialect is more permissive... AFAIK there is nothing, and I have not found anything in the comparison table: www.xsharp.eu/help/dialects.html

    The inverse is not true, there are many things that work in VO dialect, but not in Core dialect.

    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

    Please Log in or Create an account to join the conversation.

    XSharp.Tools.WPF: depend on XSharp.VO? 18 Sep 2018 18:21 #6246

    • robert
    • robert's Avatar


  • Posts: 3600
  • Wolfgang,

    We will try to move (parts of ) the Transform support to XSharp.Core in one of the next builds.

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    XSharp.Tools.WPF: depend on XSharp.VO? 18 Sep 2018 18:33 #6247

    • wriedmann
    • wriedmann's Avatar
    • Topic Author


  • Posts: 3366
  • Hi Robert,
    Thank you very much!
    Then I will keep only the dependency to Core in the WPF library
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1
    Moderators: wriedmann