Jump to content

Uwe Raabe

  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Uwe Raabe

  1. Streams don't know about encoding. You might better do with a TStreamReader. In its FillBuffer method there is some code taking care of your concern (look for ExtraByteCount).
  2. Uwe Raabe

    XML Data Binding Wizard???

    AFAIK that is not available in the Professional version. The feature matrix seems to support that information:
  3. Uwe Raabe

    Cannot perform this operation on a closed dataset

    The message is thrown inside the CheckActive method of TDataSet. I also suggest some debugging session. I guess the reason lies at place you don't expect.
  4. Uwe Raabe

    Toggle paths in Project Explorer?

    The right most button in the toolbar has a drop down menu where you can configure the sort order.
  5. Uwe Raabe

    Using Params with recycled queries

    If the query is a SELECT statement or something that also returns a record set you should use Open instead of Execute. Therefore you should add a Close before changing any parameters.
  6. Uwe Raabe

    Best way to refresh static data

    Whatever you implement, you should always measure the performance against the brute force update. If the server were a recent InterBase one, you could make it simple and fast with Change Views, but these are not available with other databases.
  7. Uwe Raabe

    Best way to refresh static data

    Why so complicated? Dump DOCS_TABLE and rebuild it from scratch - assuming you actually have access to the server. Otherwise you have to work with the data available in DOCS_TABLE anyway.
  8. Uwe Raabe

    Why can't I install this monospaced font in Delphi ?

    Can Lazarus make use of any font in the editor? Even the non-monospaced ones?
  9. Uwe Raabe

    MMX for Delphi 10.3 Rio

  10. Uwe Raabe

    MMX for Delphi 10.3 Rio

    That's basically what MMX does, too. Besides the IDE itself (with active CodeInsight) there may as well be other plugins spawning their own parser process. This bothers me for years now. It might get better when LSP is up and working reliably, but that might take a while and will be restricted on newer Delphi versions. Thanks for the tip, though. 👍
  11. That may be key here. Before looking for global components all components owned by the current one are searched (Keywords: DoFixupReferences, FindNestedComponent). So if your datamodule is owned by the form it should be found first. You may probably even omit the renaming step after loading.
  12. Indeed, it is! The references are resolved in TReader.FixupReferences and are based on component names. To wire the datasource on the datamodule to the controls on the form, the datamodule has to be created before the form loads. As all forms and datamodules register themselves in the Screen.Forms and Screen.Datamodules lists, they are found by simply iterating over these lists in the Vcl.Forms.FindGlobalComponent procedure, which is registered via RegisterFindGlobalComponentProc. You can register your own FindGlobalComponentProc this way, which takes precedence over the internal one (System.Classes.FindGlobalComponents uses a reverse loop). The implementation might be a bit tricky, though.
  13. Uwe Raabe

    Open Url From Current Line

    👍 Sometimes we need to overcome our habits hindering us.
  14. Uwe Raabe

    paste into watch list

    You have to be inside a debugging session.
  15. Uwe Raabe

    paste into watch list

    Dragging works, too. At least here in 10.3.3:
  16. Uwe Raabe

    paste into watch list

    I guess we are talking about valid expressions and not arbitrary code. BTW, even arbitrary code can be pasted or dragged into the watch list. Often that doesn't make any sense, though, as most of the time you will see an E2156 Expression too complicated.
  17. Often the time spent for low priority tickets would better be used for refactoring the code - even if the only benefit is the developers better understanding the code and ease maintaining it. That might not impact your customers directly, but definitely on the long term. First implementing that low priority ticket instead may as well have the opposite effect.
  18. Uwe Raabe

    F6 Search feature does not work anymore?

    Seems as the IDE Insight toolbar is not part of the toolbars anymore, there is no way to reset it as described. Well, the wuppdi Welcome Page options provide a checkbox for "Include Favorites in IDEInsight". It might help to just disable that one.
  19. Uwe Raabe

    F6 Search feature does not work anymore?

    Perhaps the same as happened to me a while ago? When IDE Insight suddenly stops working…
  20. Uwe Raabe

    TFDBatchMoveSQLWriter and table structure updates

    OK, there is an undocumented option poSkipUnmatchedDestFields which you can set to False (although I don't know what it does).
  21. Uwe Raabe

    TFDBatchMoveSQLWriter and table structure updates

    Can't you just delete the table before executing the batch move?
  22. Uwe Raabe

    Hotkeys for Move Entity

    I always have the feeling of wasted with that.
  23. Uwe Raabe

    Hotkeys for Move Entity

    MMX - Properties - Key bindings - Move Entity Down/Up
  24. Uwe Raabe

    Hotkeys for Move Entity

    I guess I have no control over that. You can change the shortcuts for these functions, though.
  25. Uwe Raabe

    IDE title bar anomaly?

    Because a bug-reporting system is literally full of bugs.