Jump to content

dummzeuch

Members
  • Content Count

    2977
  • Joined

  • Last visited

  • Days Won

    106

Everything posted by dummzeuch

  1. dummzeuch

    Prefix unit local variable names

    The great thing about standards is: Everybody can have his own...
  2. dummzeuch

    Prefix unit local variable names

    For me "Ego = smart", but your mileage might vary. 😉
  3. The unit Windows declares quite a few rather generic identifiers, e.g. const ERROR = 0 which is annoying when you want to use that identifier for a local variable (e.g. a string): var Value: Double; begin // function TryGetSomeValue(const _Name: string; out _Value: Double; out _Error: string): boolean; if not TryGetSomeValue('WrongName', Value, Error) then begin LogError(Error); Value := -1; end; This will not compile because Error is a constant and not a string variable. So I want to declare it as a local string variable using Shift+Ctrl+V but that fails (does nothing *1) because there is already such an identifier. This is no problem when it occurs once, but it becomes a bloody nuisance when you have to write several similar function calls. I would really like to use "Error" as a variable name here, rather than "Err" or "lError" or "ErrorStr". Is there any way to undeclare an identifier, so Shift+Ctrl+V (and probably others) work again? I doubt it but I have been wrong before. (*1: Yes, one could regard this as a bug in the refactoring functionality. I haven't checked whether there already is a bug report.)
  4. dummzeuch

    Grep broken in SVN after rev. 3383

    As of revision #3395 the grep submenu should now work again and also have working shortcuts.
  5. dummzeuch

    Grep broken in SVN after rev. 3383

    Hm, works for me. The Grep submenu contains all 4 Grep-Entries. But this is very much work in progress, so it's not surprising that something is broken. In particular, assigning a keyboard shortcut no longer works (which I hadn't noticed). But thanks for telling me. this definitely needs some more work (and I need more time ....).
  6. Somebody just asked me whether there is a simple way to migrate GExperts settings from Delphi XE7 to a new version. The short answer is: No, but some experts (or rather: some functionality, because not everything is wrapped into an expert) have an ex- and import function. I also started to write a general ex- and import function for GExperts but never finished it. Real life tends to intrude on open source programming. 😉 The long answer would be: Yes, you can do that by copying the registry entries and configuration files: read on in the blog post
  7. dummzeuch

    HTML Library review and sale: 25% off.

    I looked at the prices and couldn't figure out whether source code is included. Is it?
  8. dummzeuch

    GExperts menu too long

    The credit for this goes to my predecessors. It was already there when I took over GExperts (but I had to fix it several times because of bloody IDE theming). It probably was necessary in the 1990s, when screen space was at even more a premium than today.
  9. dummzeuch

    GExperts menu too long

    So, did you get a "more" menu entry or not? If not that's a bug.
  10. dummzeuch

    GExperts config

    OK, that was some crucial information missing. Feel free to submit this as a bug report.
  11. dummzeuch

    GExperts menu too long

    With "taller than my screen", do you mean that there is no "more ..." entry with a submenu at the end but all entries in one continuous menu? (Of course that just means you need a taller screen. 😉
  12. dummzeuch

    GExperts config

    Yes, that's how the cancel button works.
  13. dummzeuch

    Project load error

    Notepad++ can handle different encodings and easily switch between and convert them. Might be an easier option than copying line by line with Notepad.
  14. Sometimes the IDE inserts two includes for CodeGear.Delphi.Targets (I think it's a bug in the updating code for projects): <Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/> One, with the condition, one without. Not sure this has something to do with the message though.
  15. dummzeuch

    Issue with UsesCleaner..

    No there isn't. But if you file a feature request stating how exactly you want it to be formatted, chances are I might implement it.
  16. dummzeuch

    Crash starting delphi 10.4.3

    Yes, There is a command you need to execute for GetIt to switch to the internet as a data source: GetItCmd.exe -c=useonline
  17. dummzeuch

    Code Librarian

    That sounds more like use case for code templates. A bit more work to set up, but it would save a lot of typing later on.
  18. dummzeuch

    Crash starting delphi 10.4.3

    Similar issue to this: GExperts always targets the latest IDE update available at the time of its release, which in case of 10.4 is 10.4.1. Sometimes it does not matter, but in this case it does. Either update to the latest IDE version or compile your own GExperts DLL.
  19. dummzeuch

    WinUI in Delphi (planned for 10.5?)

    Not that I know of. But you could have a look into the BPLs using the GExperts PE Information Expert. It shows a list of units and classes which the package exports. That would give you a starting point.
  20. dummzeuch

    Cannot install GExperts in Delphi 10.3

    You need to install the latest update for Delphi 10.3 (10.3.3), since the runtime packages GExperts needs were not compatible between 10.3 and 10.3.3. If you can't do that for whatever reason, you can compile your GExperts DLL which would also solve the problem.
  21. dummzeuch

    Import .NET Assembly list is empty

    No, but I noticed that the problem hasn't been fixed in 10.4. Never looked at it in 10.4.1 because I found a different way that does not require a dotNET assembly. That was my "last best" solution anyway. (* "second best" would put it too mildly. Avoiding this was by far the best option.)
  22. dummzeuch

    WinUI in Delphi (planned for 10.5?)

    Hm, when will Microsoft start to rewrite Office to use WinUI? Until that happens, I am skeptical whether this will be worth the effort. But I am only a disgruntled old white man^d^d^d^d^d^d^d^d^dVCL developer.
  23. dummzeuch

    Feature Request for String Paste As

    I wrote the Convert Strings expert several months after somebody else donated the String Paste expert, because I could never remember how to use the latter. I always wanted to clean up this mess, but never came around doing it.
  24. dummzeuch

    Feature Request for String Paste As

    Have you looked at the newer "Convert Strings" expert? There is a favorite called "SQL-to-String" which seems to do exactly what you want
  25. dummzeuch

    Feature request: remember debugger exception dialog size

    OK, even though you didn't file a feature request, I just implemented this in revision #3370.
×