Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 01/17/19 in all areas

  1. Mujkoni

    Delphi SQL Formatter

    SQL to Delphi code Download Default option is CommandText, but you can change it. There is also option SQL.Add
  2. pyscripter

    Using dxgettext on Windows 10

    {$ifdef UNICODE} HookLoadResString:=THook.Create (@system.LoadResString, @LoadResStringW); {$else} HookLoadResString:=THook.Create (@system.LoadResString, @LoadResStringA); {$endif} The system functions are replaced with gettext versions that return translated strings. So wherever you use resource strings translated values will appear.
  3. miab

    IDE Fix pack for Rio

    From what Andreas writes, he does not have access to IDE sources: https://twitter.com/AndyHTech/status/1084150052560519168 But that is not the point. Why, in the case of a dozen paid editions and a dozen fix releases, Emba does not introduce these changes?
  4. pyscripter

    Impact of debug dcus on performance

    @dummzeuch I checked again and without debug dcu's you do not get line information for vcl and rtl routines in the call stack, when using jcl debug. This was the reason I was using the "debug dcus" option.
  5. Kryvich

    Delphi SQL Formatter

    I think 5 function calls or 5 assigments is not the best code style. Consider these variants: SQL.Add('SELECT EntCity, EntStageName' + sLineBreak + 'FROM Entertainers' + sLineBreak + 'WHERE 1=1' + sLineBreak + 'AND TEST=''TEST''' + sLineBreak + 'ORDER BY EntCity ASC, EntStageName ASC'); CommandText := 'SELECT EntCity, EntStageName' + sLineBreak + 'FROM Entertainers' + sLineBreak + 'WHERE 1=1' + sLineBreak + 'AND TEST=''TEST''' + sLineBreak + 'ORDER BY EntCity ASC, EntStageName ASC'; Optionally replace line breaks with spaces: SQL.Add('SELECT EntCity, EntStageName ' + 'FROM Entertainers ' + 'WHERE 1=1 ' + 'AND TEST=''TEST'' ' + 'ORDER BY EntCity ASC, EntStageName ASC');
×