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

TOPIC:

What we need.... 16 Jul 2018 06:14 #5492

  • wriedmann
  • wriedmann's Avatar
  • Topic Author


  • Posts: 3366
  • Hi all,

    after the long thread about a X# Tools library www.xsharp.eu/forum/suggestions/759-addi...unctions-and-classes I would thank the development team, specially Robert, for listening and giving us the infrastructure for this important project.
    I'm pretty sure this project will help us to build a solid fundament for our X# applications.

    What we need in the next weeks until the Github infrastructure is ready:
    first, we need suggestions from you what you miss in the .NET Framework and what you think that our Tools Library should contain
    second, if you have code that you think that should be contained in this library. Of course, if you contribute code, it must be under the "XSharp Open Software License" like all runtime code of X#: www.xsharp.eu/licensing/xsharp-open-software-license

    Of course, the code should be documented like the code of the runtime itself. For a sample, please see here:
    github.com/X-Sharp/XSharpPublic/tree/fea...Conversions.prg#L369

    I hope, that this project will help all of us to be successful with X#!

    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

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

    What we need.... 16 Jul 2018 11:32 #5494

    • ic2
    • ic2's Avatar


  • Posts: 1667
  • Hello Wolfgang,

    Just like many other programmers, I have a library with functions and methods which are not present in the normal VO runtime. I have divided those in functions we wrote ourselves and functions from others, usually from comp.lang...

    These functions I consider the most important in being productive and, as often, it's a bit a matter of remembering that we have a function ready to perform a certain task, or a quick way to search for it and recognizor such a functions as the suitable solution. For me, this library is more important than most "New language features" even though, as written, I acknowledge it's good these are added by the team.

    My question is: is that what you have in mind for the project? Below a random sample of such a simple function.

    Dick

    FUNCTION StrReplace(cOrg AS STRING, cString AS STRING, nFrom AS DWORD) AS STRING
    //#s Replace in cOrg from position nFrom the content by cString (same length)
    LOCAL cRet AS STRING
    IF nFrom<>0
    cRet:=Left(cOrg,(nFrom-1))+cString+SubStr2(cOrg,(nFrom+Len(cString)))
    ELSE
    cRet:=cOrg
    ENDIF
    RETURN cRet

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

    What we need.... 16 Jul 2018 11:45 #5495

    • wriedmann
    • wriedmann's Avatar
    • Topic Author


  • Posts: 3366
  • Hi Dick,

    IMHO this library does not should be a simple transport of VO functions and methods, but offer functionality we are used to to the Framework classes, like a name based binding to WinForms/WPF windows, or pictures to WinForms/WPF controls.

    And I'm pretty sure there is a lot of needed functions like IsPropertyList() or IsProperty() or GetPropertyValue(), simple because properties in VO does not exist.

    I already have several of these functions and classes because I needed them working on my X# projects.

    I'm making a distinction between migrated VO applications (that probably would not need such a library because we can simply port our VO libraries) and new, pure :NET applications that need some successful concepts from the VO age.

    But of course I'm open to discussions.

    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

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

    What we need.... 16 Jul 2018 12:12 #5497

    • ic2
    • ic2's Avatar


  • Posts: 1667
  • Hello Wolfgang,

    this library does not should be a simple transport of VO functions and methods,


    Ok, clear. I've written a few functions not available in VO (or less efficient/well working, like zipping files >2Gb) in a Vulcan (now X#) lib. Part of it relies on a C# lib I created (usually because the solutions I needed I found in C# code samples).

    These are a few functions/methods I use. Do you mean something like that?

    Dick

    SaveImageFromClipboard - Save jpg cFile from clipboard

    IsValidEmail - Check if email string is a valid e-mail address

    GetFileViaHttp - General function to get content of page via http

    MakeZipFile - Zip a set of files via C# (supports >2 Gb files & zips)

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

    Last edit: by ic2.

    What we need.... 16 Jul 2018 14:00 #5501

    • wriedmann
    • wriedmann's Avatar
    • Topic Author


  • Posts: 3366
  • Hi Dick,

    the first 3 would qualify, the 4th not because depends on an external library not part of the X# runtime and not part of the .NET Framework.

    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

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

    What we need.... 17 Jul 2018 12:36 #5519

    • ic2
    • ic2's Avatar


  • Posts: 1667
  • Hello Wolfgang,

    I'll send you the first 3. But the ZIP method is not an external library. It's my own C# code. Of course it contains bits and pieces I found in samples or postings with Q&A, and that's the reason it's C#, but I wrote this myself.

    Dick

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

    • Page:
    • 1
    Moderators: wriedmann