Jump to content

Lars Fosdal

Administrators
  • Content Count

    3504
  • Joined

  • Last visited

  • Days Won

    115

Everything posted by Lars Fosdal

  1. Note to @Daniel - See the above comment. The quote gets wonky after an edit, and once it is wonky, it can't be edited again.
  2. Is it correct that the custom transactions only apply to Interbase and Firebird? I.e. for f.x. SQL Server, transaction handling would have to be in the query itself?
  3. I prefer individually named methods instead of overloads. Optional parameters can work in some cases, but when things get really complex with a lot of variations, I use variations on the theme that @Der schöne Günther introduced. A record, an object, or an anonymous method.
  4. Lars Fosdal

    Closing an external App.

    Are you trying to prevent running the same app twice? https://lonewolfonline.net/prevent-multiple-instances-delphi-application-running/ https://stackoverflow.com/questions/8688078/preventing-multiple-instances-but-also-handle-the-command-line-parameters As mentioned above, FindWindow need window class names or window titles. https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-findwindowa Unless you want to enumerate processes to find the main window(s), calling taskkill could be an alternative. https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/taskkill
  5. Lars Fosdal

    Combining several applications into one

    We are trying to make a habit of assigning events / config in code, and not rely on dfm / unit event handler references. Frames are indeed a great way to plugin/unplug code. Although - I have been told that Frames are not quite as desirable in FMX? Can anyone offer their experience with FMX and dynamic creation of frames?
  6. Lars Fosdal

    Combining several applications into one

    We partly use the same model as Rollo62 does. Functionality that is shared across apps, is implemented as frames. The amount of work required to create a frame from a regular form, depends on the complexity - but quite often it is more or less just a cut and paste.
  7. Lars Fosdal

    [Fmx, Android] TBluetoothLE device disconnect

    It could be BLE version / chipset dependent. That out-of-range issue is a killer, really. Not being able to do a proper recovery there is pretty darn hopeless.
  8. Lars Fosdal

    [Fmx, Android] TBluetoothLE device disconnect

    Have you collected a list of devices / OS versions that have particular behaviours?
  9. Lars Fosdal

    Creating ActiveX

    What kind of app will be hosting the ActiveX component? The future of ActiveX is a bit iffy.
  10. Are there changes to the theme resources since 10.3.0?
  11. What about https://github.com/RRUZ/delphi-ide-theme-editor ?
  12. Lars Fosdal

    Styled DBGrid OnDrawDataCell

    What if you call Inherited before drawing the rect? I see that in some of my code I only do my custom drawing if State = [].
  13. Lars Fosdal

    Styled DBGrid OnDrawDataCell

    Have you tried without the lock/unlock? You are after all already inside a grid on draw event. A possible workaround could be to do an invalidate on the grid after a drag/drop. Also - how a mod 2 = 0 can draw every three rows, is a bit of a mystery 😉
  14. The link above contains the general ISO for Delphi / RAD Studio for license hoders. You need to be logged in, and possible have a subscription? Not sure about the last bit. The Community Edition (CE) of Delphi can be found here: https://www.embarcadero.com/products/delphi/starter/free-download Are you on CE or Pro|Enterprise|Architect?
  15. Have you checked the integrity of the ISO image? CertUtil -hashfile <filename.iso> <MD2|MD4|MD5|SHA1|SHA256|SHA384|SHA512> i.e. CertUtil -hashfile delphicbuilder10_3_3_7899_nt.iso MD5 The output should match the MD5 signature in http://cc.embarcadero.com/item/30896 Personally, I prefer the Web Installer.
  16. Control Panel | System | Advanced System Settings | Environment Variables System Variables | Path
  17. Did you use the .ISO installer or the web installer? The length of the path environment variable can be a problem. Check that there are no old and obsolete paths filling it up.
  18. <Images of General Custer flashing by...>
  19. Lars Fosdal

    Access violation at address in module rtl260.blp

    Is it live at design-time? (I have nothing but bad experiences with that and prefer to NOT do that) Is the data source originally used when designing still available?
  20. Lars Fosdal

    Windows product ID (from the registry)...

    Which version of PowerShell? I recommend installing PS Core 6 while waiting for 7. Faster and richer. From your Windows Powershell command line, run: iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI" Note that PS Core 6 runs on Linux and MacOS too.
  21. Lars Fosdal

    Windows product ID (from the registry)...

    You can also validate your findings through PowerShell PS C:\> Get-ComputerInfo | select WindowsProductName, WindowsVersion, OsHardwareAbstractionLayer WindowsProductName WindowsVersion OsHardwareAbstractionLayer ------------------ -------------- -------------------------- Windows 10 Enterprise 1809 10.0.17763.737
  22. Lars Fosdal

    Using Expressions in the Group By Clause in Interbase

    An alternative could be using a temp table for the inner select?
  23. Lars Fosdal

    Using Expressions in the Group By Clause in Interbase

    I've not used Interbase, but if follows std SQL, it could be something like this? SELECT HIREDMONTH, EMPLOYEECOUNT FROM ( SELECT extract (month FROM HIRED_DATE) AS HIREDMONTH, count(*) AS EMPLOYEECOUNT FROM employee ) AS Table1 GROUP BY HIREDMONTH, EMPLOYEECOUNT
  24. Have any of you tried these ARM development kits with AOSP and Delphi? https://www.96boards.org/product/hikey960/ https://www.96boards.org/product/hikey970/
×