Jump to content

Vandrovnik

Members
  • Content Count

    583
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Vandrovnik

  1. From my point of view, it is wrong. For "var" parameters, I expect they are already initialized. For uninitialized variables, that are used as output, there is "out". https://docwiki.embarcadero.com/RADStudio/Sydney/en/Parameters_(Delphi) - Out parameters are frequently used with distributed-object models like COM. In addition, you should use out parameters when you pass an uninitialized variable to a function or procedure.
  2. It does not have to look inside - it sees (immediatelly), that uninitialized variable is passed as "var" parameter. It means that I should initialize the variable, or change the procedure and use "out" parameter instead of "var".
  3. It helps to avoid mistakes. Here it produces a warning: ([dcc32 Warning] Test79.dpr(22): W1036 Variable 'a' might not have been initialized) procedure Test2; var a: integer; begin if a=1 then exit; end; I believe it should be consistent and produce a warning in Kryvich's example, too.
  4. Please will you report it and post here the link? I would vote for it.
  5. Vandrovnik

    Is Graphics32 ready for Delphi 11 yet?

    Do you get the same error when you specify full path to the .bmp file?
  6. In my opinion, in these situation you sometimes have to ask the user. Even when data is sent to printer, it does not mean it was really printed OK (out of paper, damaged printout...).
  7. Hello, When I set per column font properties (bold, font color...) and run it on a monitor with scale > 100 %, this column is drawn too small. I have reported it, if you want to test and vote, please here: https://quality.embarcadero.com/browse/RSP-36849 If there is a workaround, please let me know...
  8. Vandrovnik

    Delph 11 - TDBGrid + HDPI monitor + per column font

    Setting Grid.ParentFont to false seems to help.
  9. Vandrovnik

    Parnassus Bookmarks for Delphi 11 Alexandria?

    Ctrl+Shift+Number to place a bookmark and Ctrl+Number to go to bookmark is a bit faster. I am using AutoHotKey, which allows to remap pressed keys, so I have created a simple script, which remaps Ctrl+Shift+Number and Ctrl+Number to its Ctrl+K/Ctrl+Q counterparts. If you want to try, I have attached this script; it should be put in AutoHotkey.ahk. This works for "IDE classic" key mapping in Delphi. Bookmarks.txt
  10. Vandrovnik

    IDE being destroyed by new versions

    Should this field even find tPanel? Because there is another field where I can type component name:
  11. Vandrovnik

    Which version BDE

    Hmm, you are right, in Delphi 7 probably shortstring was that string type with 255 chars limit.
  12. Vandrovnik

    Which version BDE

    It depends - Delphi 7 did not support Unicode, while newest version do; all char and string variables may need attention. SizeOf(char) = 2 now, strings are not limited to 255 chars...
  13. Vandrovnik

    IDE being destroyed by new versions

    It makes no sense to complain here. Found bugs should be reported on https://quality.embarcadero.com
  14. Vandrovnik

    Firebird 3 Client Installation

    Many = 3 in this case, I have no problem with it. When customer has a new computer, he can just start the application from network share, there is no need to install it. It is also much easier to update FB client, when you can replace its files in one place and do not have to make changes on all computers.
  15. Vandrovnik

    Choice of Windows text rendering engines

    I would also vote for DirectWrite. When I switched to Direct2D and DirectWrite, I have used https://github.com/CMCHTPC/DelphiDX12 instead of Emba's units, which were buggy and did not contain "new" things (like printing support for Direct2D).
  16. Vandrovnik

    FB3.0 SQL

    As far as I know, Firebird does not support PIVOT. If you really need a column for each WHNO, you can first use a query to get distinct WHNO values and then use these values to create second query, which would compute the values.
  17. Can you download these audio samples after installation from your server(s)? The same way as offline maps are downloaded by apps... And probably stored to SD cards instead of internal storage (user is asked where to store them).
  18. There is a link to his homepage and there he has https://stevemorse.org/jcal/jcal.html If you display source code of the page, there are javascript routines, may be it is enough to rewrite them to Delphi?
  19. What about https://stevemorse.org/hebrewcalendar/hebrewcalendar.htm ?
  20. Vandrovnik

    Firebird - Sum of total fields from different tables ?

    SELECT (SELECT SUM(a.Total) FROM Table1 a) + (SELECT SUM(a.Total) FROM Table2 a) + (SELECT SUM(a.Total) FROM Table3 a) as GrandTotal FROM RDB$Database
  21. Vandrovnik

    Bookmarks dead?

    They can create "Bookmarks HDPI" without the compatibility with older versions, if it is easier for them...
  22. Vandrovnik

    Firebird 4.0 Unknown sql type err.

    If your app is not able to handle new datatypes introduced in Firebird 4, you can use DataTypeCompatibility = 3.0 in firebird.conf You can also typecast the result of the multiplication to something you can handle.
  23. Vandrovnik

    Firebird 4.0 UDF

    Use SUBSTRING instead of SUBSTR, as Serge_G wrote...
  24. Vandrovnik

    PAServer for remote Debugging on Windows

    I have used it once last year, it was working. Not fast, but working (Win 32 app).
×