Jump to content

hsauro

Members
  • Content Count

    104
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by hsauro


  1. I do Windows/Mac tools, so for me I’d like to see improvements to FMX, particularly the grid so that it had some of the same functionality as the VCL version. Some small improvements to the FMX TMemo would be nice as-well. I wish they would open the FMX to others so that the community could help since it seams Embarcadero is resource limited. The last thing that would be nice to have is the ability to generate webassembly. I’m starting to develop more and more client side web tools. I’ve used pas2js with success but Delphi must be one of the last major compilers not to support webassembly.

    • Like 2

  2. 5 hours ago, softtouch said:

    Python is too huge for just the small things I want to do, and I dont want to dig into python programming.

     

    I took a look at TJvInterpreterProgram, but its hard due to lack of documentation. It works, but I could not figure out how to use system functions like copy, delete etc. from within the code for the interpreter.

    Your best bet given your requirements is lua, mentioned previously. Used a lot in gaming apps.


  3. Has anyone had any experience in connecting FireDAC to MongoDB Atlas? I can connect to the database easily using the MongoDB atlas compass application and I can also easily connect to it from python using pymongo, but I can't fathom how to connect to it via Delphi. I am using Delphi Pro 11.1, so I assume it has the capabilities to connect.  I noticed someone asked a similar question last year on StackOverflow, but there was no response. If I have to I can call python from Delphi. 

     

    https://stackoverflow.com/questions/68401095/connection-to-mongodb-atlas-with-delphi

     

    What I have done is copied over the two monogo specific DLLs I need, added a FDConnection to a VCl windows and double click that to bring up a dialog box and enter the details but I can't seem to get it to work. The main error is failing to resolve mongodb+srv which I believe is the server name 


  4. Of course it’s their product to do as they wish but I would have thought increasing the developer community would be a priority especially for attracting a younger generation. A student or hobbyist isn’t going to pay $1600 when there are other less expensive options. The alternative options tend however to be less productive but the current generation doesn’t know this. 
     

    Without a pool of skilled Delphi developers a company will just use other development environments where they can get the expertise. I think the community edition serves an important service and should be directed specifically to those interested in developing open source code or hobbyists who Ike to try out new software. I wholeheartedly agree that if someone makes money out Delphi then they are obliged to purchase the full version. The threshold for making money can be debated, but the current $5000 is a little on the low side I think.

    • Like 5

  5. François Piette wanted me to forward this message from Delphi Developer on facebook, so here it is (note I'm the messenger)


    "I think that the 3 registrations is for the same serial number that you get for one year. You get a new one each year. Why do you need more than 3 registration? Did you reformat your computer? If you have to reformat so often then consider making a full bakcup right after a fresh install with everything you need and then when you feel necessary to refresh you computer, don't reformat but restore your backup. Your Delphi registration will still be there."


  6. 6 hours ago, Antonk said:

    I think it is possible - new registration with a new email allows you to obtain a new license, but it is inconvenient for many users.

    I agree, what it means is the company hasn’t thought this through properly. I suspect there is a tension between the embarcardero employees we know and who’d like to see the Delphi community to grow and upper management who see the short term loss of dollars and probably would like to see the community edition go away. What we have is a compromise between the two groups.


  7. Thanks, I'll take that into account

     

    One other question I have, how can I check if a python script I import has a given function?  eg

     

    p = Import (mypythoncode)

    p.myfunction()

     

    Is there a check I make to see if myfunction() is defined in mypythoncode other than actually trying to call it and trapping the exception? I should add that myfunction() isn't part of a class.

     

     


  8. That worked, thanks, I should have tried it first.

     

    For those who are interested. all I did was declare my method at the Delphi end as:

     

    function TObj.getlist : TStringList;

    begin

      result := TStringList.Create;

      result.Add ('abc);

    etc

    end

     

    I assume the TStringList is reference-counted at the python end and I shouldn't care about dreeing it?

     

    Then at the python end, I just called

     

    x = obj.getList()

     

    It comes back as a TString type but you can convert it to a python list using list(x) or x.ToList(). As a TString type, it does have all the methods you'd expect for a Delphi TString type, eg 

     

    x.Add ('A long string')


  9. I'm using DelphiWrapper to expose an API in a Delphi application that Python can run methods from. So far it works ok. It's a very primitive plugin system. My question is whether there is a way for a Delphi method to return a python list to the python caller using delphiwrapper. eg

     

    In python:

    mylist = delphiAPI.getlist()

     

    where mylist might be a list of strings ['red', 'dog', 'rock']

     

    At the moment I export two more primitive methods, one method to get the number of items and another method to get the ith item. I then create a small Python function that builds a python list using those more primitive methods. I was wondering if there was another way to do this using DelphiWrapper. In the long term, it would also be nice to return and pass to Delphi numpy arrays but I imagine that would be much more difficult. 

     

×