Jump to content

Lars Fosdal

Administrators
  • Content Count

    3312
  • Joined

  • Last visited

  • Days Won

    110

Everything posted by Lars Fosdal

  1. Lars Fosdal

    Delphi 11.3 Patch 1 Available

    https://blogs.embarcadero.com/rad-studio-11-3-alexandria-patch-1-available/ Edit: Corrected the link
  2. Lars Fosdal

    How do I convert from string to char?

    It clearly tells you that a string is an array of characters. That should give you some ideas?
  3. Lars Fosdal

    How do I convert from string to char?

    https://docwiki.embarcadero.com/Libraries/Alexandria/en/System.UnicodeString
  4. But - there are other uses than generating code - namely analyzing it. https://betterprogramming.pub/i-used-gpt-3-to-find-213-security-vulnerabilities-in-a-single-codebase-cc3870ba9411
  5. Lars Fosdal

    My carriage return and line feed isn't working

    Add MemoResults -> Clear() at the beginning of your code. I recommend looking up the online help for the VCL components to learn about their capabilities.
  6. looks a bit fishy...
  7. That is the problem with ChatGPT. It cannot be relied on.
  8. Lars Fosdal

    My carriage return and line feed isn't working

    Is there an EditResults -> Lines -> Add method?
  9. ASM is pretty much straight ASM32 or ASM64.
  10. Deviating slightly from the original topic: I wonder when green computing will become a part of education and business, i.e. writing code / designing libs that are less expensive in the context of power consumption.
  11. The configurations inherit values - can it be that your release version of the "failing" app has an override?
  12. Lars Fosdal

    Unicode weirdness

    @David Schwartz - You wouldn't happen to have an original file uploaded as an attachment to a post here, so that we can try some conversions?
  13. Another man's struggles with AI generated code. https://mastodon.gamedev.place/@badlogic/110139794125541730
  14. Lars Fosdal

    Unicode weirdness

    Wouldn't converting the chars to Unicode solve that problem? All strings in modern Delphi components are using Unicode. I don't understand why you don't want to handle the text as what it is. Once you have the text as Unicode, you also get all the nice TCharHelper functions to understand what kind of character you are looking at, in case you want to do more manipulations. A lot better and more robust than string replacements.
  15. Lars Fosdal

    Unicode weirdness

    @David Schwartz - This looks like MBCS encoding - the old ANSI multibyte character set encoding scheme in Windows. The ANSI routines should be capable of converting the strings to Unicode, but they depend on knowing the appropriate code page. https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Commonly_Used_Routines_for_AnsiStrings
  16. Lars Fosdal

    Forum for Spring4D

    I tried accessing that page, same problem.
  17. Lars Fosdal

    Choosing a Mac

    I have a MBP M1 Pro 32/2Tb, but if was buying a Mini, I would personally go for the M2 24GB/2TB. You can't expand later, so hence go for the max for that config. You can go bigger with the M2 Pro - but then it gets quite expensive, quite quick. I am not near my Mac atm, so I can't say how large the VM is. It depends a lot on what you install..
  18. Before DelphiLSP, I used the OmniPascal extension in VS Code. I've not tried the one you linked.
  19. Lars Fosdal

    Delphi 11.1 compiled under MacOS Ventura

    @Glenn Dufke stated although that only indicates that to create Ventura compliant apps, you need 11.3.
  20. Lars Fosdal

    Choosing a Mac

    VNC is another option for remoting - or install Windows for ARM under Parallells on the MAC and run it all on the Mac. It certainly is fast enough with enough RAM and SSD space.
  21. Lars Fosdal

    General Help Indeed...a long-shot here....

    BTW - when searching in files, use "in directories" and check "Include subdirectories" and point to the topmost folder that contains your source code. "In projects" does not necessarily include all units, since you can reference a unit without adding it to the project.
  22. Lars Fosdal

    How to change color of Title Bar without TTitleBar

    I am not sure which version of Delphi you are using, @GP_23 (You can set that in your profile), but the following has been working at least since Sydney: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Custom_Title_Bar_for_VCL_Forms Edit: ... and I fell into the trap of not reading the OP properly. Surely there must be a way to get the main menu and custom title bar working?
  23. Lars Fosdal

    Delphi 11.1 compiled under MacOS Ventura

    A question of definition, I suppose. Without the Mac, you'll not have a binary that can be sideloaded?
  24. Lars Fosdal

    Delphi 11.1 compiled under MacOS Ventura

    Compiling / Building does need a Mac, since it uses XCode for the final steps.
  25. Any text editor can be used to edit .pas files. It is when configuring projects and editing frames/forms that you are stuck with using the Delphi IDE. CoPilot supported editors are listed here: https://docs.github.com/en/copilot/getting-started-with-github-copilot VS Code works with DelphiLSP and CoPilot - so that is a clear candidate.
×