Jump to content

haentschman

Members
  • Content Count

    210
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by haentschman


  1. Quote

    Six years ago (2018) there was an edition of FastReport for CE, but now you must buy it.

    ...sorry, it is new for me. :classic_wacko:

    image.thumb.png.b859297c70482215fcb1a4a534f198b9.png


  2. Hi...😎

    Quote

    The community version of Delphi 11 does not contain any Reporting Components

    ...wrong. 😉 FastReport Delphi Edition...

     

    The right way:

    1. use a reporting tool (print, export, preview)

    2. do not print the visual component (TDBGrid) ... print the data in the dataset

    3. design the report

    4. finish...😛

    FastReport videos (VCL):

    https://www.youtube.com/watch?v=H6ntcbqF0MU

    https://www.youtube.com/@FastReportsAcademy

     

    Quote

    quick and easy way

    ...nothing is quick and easy. 🙄 You have to learn something new every day.


  3. Hi...:classic_cool:

    procedure TfrmDino.BitBtn1Click(Sender: TObject);
    begin
      Application.Terminate;
    end;

    Terminate is the last option to end the program.
    With Terminate NO more events are executed. Better to terminate is self.close or close

     


  4. 😢 I put this in the groups...

    Quote
    
    Winapi
    System.Win
    System
    Vcl
    Data
    FireDAC
    cx
    DM
    x
    x.Tools
    Frame
    Form

     

    after:

    uses
      System.Classes, System.SysUtils, System.Variants, System.Generics.Collections, System.Generics.Defaults, System.DateUtils, System.Math,
      System.StrUtils, Vcl.Imaging.pngimage, Data.DB, FireDAC.Stan.Param, FireDAC.Stan.Option, FireDAC.Comp.Client, FireDAC.Comp.Script,
      DataModuleTextConstants, x.Classes.Common, x.Classes.Base, x.Classes.Data, x.Constants, x.Types, x.Tools.Mapping,
      x.Tools.DateTime, x.Tools.TryFinally, x.Tools.Json, x.Tools.Regex, x.Tools.IO, x.Tools.BitMask, x.Database.Common,
      x.Preferences;

    What ist wrong?

    PS: 15.1.8


  5. ...🤔

    before:

    uses
      System.Classes, System.SysUtils, System.Variants, System.Generics.Collections, System.Generics.Defaults, System.DateUtils, System.Math, System.StrUtils,
      Vcl.Imaging.pngimage,
      Data.DB,
      FireDAC.Stan.Param, FireDAC.Stan.Option, FireDAC.Comp.Client, FireDAC.Comp.Script,
      DataModuleTextConstants,
      x.Classes.Common, x.Classes.Base, x.Classes.Data, x.Constants, x.Types,
      x.Tools.Mapping, x.Tools.DateTime, x.Tools.TryFinally, x.Tools.Json, x.Tools.Regex, x.Tools.IO, x.Tools.BitMask,
      x.Database.Common,
      x.Preferences;

    after:

    uses
      System.Classes, System.SysUtils, System.Variants, System.Generics.Collections, System.Generics.Defaults, System.DateUtils, System.Math,
      System.StrUtils, Vcl.Imaging.pngimage, Data.DB, FireDAC.Stan.Param, FireDAC.Stan.Option, FireDAC.Comp.Client, FireDAC.Comp.Script,
      DataModuleTextConstants, x.Classes.Common, x.Classes.Base, x.Classes.Data, x.Constants, x.Types, x.Tools.Mapping,
      x.Tools.DateTime, x.Tools.TryFinally, x.Tools.Json, x.Tools.Regex, x.Tools.IO, x.Tools.BitMask, x.Database.Common,
      x.Preferences;

    image.thumb.png.f01a121d72a14d0b50181b643a08e482.png


  6. Hi...:classic_cool:

    Quote

    I've seen it in multiple places on the internet

    ...sometimes the internet is not correct. :classic_tongue: The styleguide from Emba is correct! https://docwiki.embarcadero.com/RADStudio/Sydney/en/Delphi’s_Object_Pascal_Style_Guide

    Quote

    your formatting is not consistent

    +1

     

    better:

    (indent)

    if condition then
    begin
      code;
    end
    else 
      if otherCondition then
      begin
        more code;
      end;
      
    //or:
    
    if condition then
    begin
      code;
    end
    else 
    begin
      if otherCondition then
      begin
        more code;
      end;
    end;

     

×