Jump to content

Lars Fosdal

Administrators
  • Content Count

    3416
  • Joined

  • Last visited

  • Days Won

    113

Everything posted by Lars Fosdal

  1. Lars Fosdal

    Non Delimited string parsing (registry entries)

    https://larsfosdal.blog/2019/08/06/generic-command-line-parser-for-delphi-10-3-x/ Also, this thread contains numerous other parsers.
  2. Start a new topic. Give some examples.
  3. Another benefit of using generic classes over records is the amount of reuse.
  4. I agree. If we consider the current example, what would be your choice?
  5. Exactly. Which is why I use objects.
  6. Which is why I don't use dictionaries with records. It is rare that I load up a dictionary and do not need to change some of the content later. If I was insistent on doing records, I would probably write code that ordered the array by the key and did binary lookup to a pointer to the record.
  7. @David Heffernan The last time I tried that, I was changing copies of what I had put into the dictionary. Perhaps I was doing it wrong?
  8. Lars Fosdal

    Issues Deploying Firebird DB on Ubuntu 8.04LTS

    @Larry Hengen - did you change the access rights (chmod) on the db file as well? What are the access rights?
  9. Have you tested without extra IDE extensions?
  10. Found a somewhat related case to my issue in QP: https://quality.embarcadero.com/browse/RSP-28514 Added my comments to it.
  11. See comments #1 Ctrl+Shift+ArrowUp/Down does not work. Seems to be due to typed constant. See comments #2: Broken class completion, seemingly due to same cause as #1. program SydneyCodeNav; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils; type TRec = record a: Integer; // procedure Test; // #2 Uncomment line and press Ctrl+Shift+C to complete code end; TMyObject = class const TR:TRec = (a:1); private procedure InternalTest; // #1 Place cursor here, try Ctrl+Shift+ArrowDown does not work public procedure Test; end; TUnrelated = class // procedure Unrelated; // #2 Uncomment line and press Ctrl+Shift+C to complete code end; { TMyObject } procedure TMyObject.InternalTest; begin Writeln('InternalTest'); // #1 Place cursor here, Ctrl+Shift+ArrowDown end; procedure TMyObject.Test; begin Writeln('Test'); // #1 Place cursor here, Ctrl+Shift+ArrowDown does not work InternalTest; // Ctrl-Clicking InternalTest works end; procedure Test; // Chtrl+Shift+ArrowUp/Down works here var o: TMyObject; begin o := TMyObject.Create; // Chtrl+Shift+ArrowUp/Down works here try o.Test; finally o.Free; end; end; begin try try Test; except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; finally Write('Press Enter: '); Readln; end; end.
  12. I haven't seen that specific problem, but I have some units where Ctrl+Shift+Arrow up/down simply refuses to work in 10.4.1 as well as 10.3.3. I need to try to make a minimal example and report it.
  13. Is this to navigate between interface and implementation for a class method?
  14. I have an AOC U3277 - very happy with it.
  15. Lars Fosdal

    CPP or C++ Category

    You can collapse a section of the subforum list, but then there are the activity streams.
  16. Lars Fosdal

    10.4.1 Released today

    My installation did the uninstall and asked if I wanted to keep the current registry settings, which I confirmed. Colors and environment variables, etc, were as expected after the new installation. Same with SDKs and Connections. I did have some issues with Parnassus - where I had to delete the old Parnassus_Sydney DLLs for the installer to run as the old ones did not work with the new IDE. Then I got some missing Parnassus warnings when loading workspace, before I could reinstall with GetIt. After installation, the DLLs were where I expected, and everything worked as expected - apart from a floating bookmark window 😛
  17. Lars Fosdal

    10.4.1 Update

    It is slightly annoying that you have to manually reinstall GetIt component packages on an upgrade like this.
  18. Lars Fosdal

    looking for UI design ideas for tracking a process

    Individual ticket display - It depends a lot on the type of user. I know that our users that are non-PC aficionados, are uncomfortable with tree views. If the series of stages are sequential, I'd consider a segmented progress bar, combined with a panel with information on the status of the current stage in progress. Just to stay in line with my original example
  19. Lars Fosdal

    CPP or C++ Category

    Well, technically I use RAD Studio - that has the C++ bit - but that is sort of a remnant from when the .NET stuff looked like it was going somewhere. Not sure if it is possible to downgrade from RAD Studio Enterprise to Delphi Enterprise. I never use the C++ bit even though I always install it for good measure. Point being: There is a relationship that goes heavily from C++Builder to Delphi, but which is very weak the other way around.
  20. Lars Fosdal

    COM: OleCheck() in polling

    Indeed it is only outbound. All inbound activity is TCP/UDP oriented.
  21. Lars Fosdal

    COM: OleCheck() in polling

    I wonder what kind of effect that has on f.x. FireDAC? We use the SQLNCLI11 and MSOLEDBSQL drivers in heavily multithreaded services. We also use OLE objects in DLLs created a decade and a half ago against our ERP system.
×