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

    There is an unofficial download available for MMX Code Explorer with Delphi 10.3 Rio support. Unofficial because it didn't have had much testing yet due to some incompatibilities found during the beta phase. One of this results in the loss of the MMX editor context menu entry. Another big change ist that MMX version 14.x only supports Delphi 10 Seattle and higher. For that, version 13 will still be available for download and installations for older Delphi versions should keep working. I had to make this cut to avoid wasting too much time just to make it work and test it on those older versions. Nevertheless there are some features and bug fixes: Unit Dependency Analyzer is now dockable (so you can see immediately when you introduce cyclic dependencies) New settings page Project Options (currently contains only the setting for Uses Clause Sorting). These settings are stored per project in a separate section of the dproj file. Uses Clause Sorting accepts lists like (ToolsApi,DesignIntf) as one group. This only affects grouping, so the order inside this list is not relevant. Uses Clause Sorting accepts wildcards like Rz* (for Raize Components) or Id* (for Indy) to better handle non-dotted unit names New sorting options "group class members" - keeps the class methods together fix: Wrong result when renaming parameter during Extract Method fix: Add Local Variable now also works with For-In clause fix: Hard coded string scan check for min length works correct now fix: Paste Interface in empty class just works now fix: Consolidated behavior of selected file in Open/Use Unit dialog fix: Creational Wizard follows static/non-static when suggesting destructors Some work has been done for supporting themes, but that is still a long road to go. Please report any bugs and problems found either here or via support@mmx-delphi.de.
  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.