Jump to content

haentschman

Members
  • Content Count

    210
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by haentschman

  1. haentschman

    How to edit a config file

    Hi... Why if RHini = nil if if the variable is local ? better: RHini := TIniFile.Create(AppDir+'\RemoteHost.cfg'); try RHini.WriteString('RemoteHost','User',UserName); finally RHini.Free; end;
  2. haentschman

    Use Interbase Developer license on 2 Windows PCs?

    Hi... If you can...change to Firebird. The "mother" of Firebird (many years ago) is Interbase. The licence is free. https://firebirdsql.org/en/server-packages/
  3. haentschman

    Looking for a couple of good "starter" Delphi books

    Hi... https://www.youtube.com/results?search_query=delphi+tutorial+english ...maybe there is something for you.
  4. haentschman

    Print TDBGrid

    ...sorry, it is new for me.
  5. haentschman

    Print TDBGrid

    Hi...😎 ...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 ...nothing is quick and easy. 🙄 You have to learn something new every day.
  6. Delphi: Only the subscription expires. The license remains valid.
  7. haentschman

    Encrypt ini file

    Hi... ...encrypt not the file, only the information. 😉 XML like INI: <Password>xbWONK6X9KT/Pq1LFcV+4VRA8tePadM1yL+iVp3hA4rkgkbckH/EG00NYnuCkN22Zyg=</Password> There are several methods of encryption. DEC for example: https://github.com/MHumm/DelphiEncryptionCompendium
  8. haentschman

    D12 Welcome Page

    ...die mit den Bonbons. 😋
  9. haentschman

    D12 Welcome Page

    Hi...😎 https://dwp.gksoft.ch/en/Delphi-Welcome-Page-Plugin.html ..it is my:
  10. haentschman

    Help with Query at run time

    Hi... 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
  11. haentschman

    BDE Installing

    Why BDE with D12?
  12. haentschman

    Help to find database error

    FDquery1.Open(query); //or FDquery1.Open('Select * from DAT2'); ...What about queries with parameters...then that doesn't work. 2 notations with or without parameters...no.
  13. haentschman

    Help to find database error

    Hi...😎 The Query needs the connection. Via ObjectInspector or via code. Check this...😉 FDQuery1.Connection := FDConnection1; // or via ObjectInspector FDQuery1.SQL.Text := query; FDQuery1.Open; // better
  14. haentschman

    Help to find database error

    ...there is a \ missing. "D:\Delphi..." 😎
  15. haentschman

    What is the benefit of sorting the Uses clause?

    Hi...😎 Now is Checkbox = True. Than...is it ok.
  16. haentschman

    What is the benefit of sorting the Uses clause?

    😢 I put this in the groups... 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
  17. haentschman

    What is the benefit of sorting the Uses clause?

    Sorry...😉 PS: with "*" ("Form.*") also... PS: FireDAC and more are missing (first test) 😉
  18. haentschman

    What is the benefit of sorting the Uses clause?

    ...🤔 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;
  19. haentschman

    What is the benefit of sorting the Uses clause?

    @Uwe Raabe Hi...😎 Is it possible to start each group in a new line? uses Winapi.Windows, System.Classes, System.Generics.Collections, System.Generics.Defaults, System.SysUtils, ...
  20. haentschman

    How can I get this code formatting ?

    Hi... ...sometimes the internet is not correct. The styleguide from Emba is correct! https://docwiki.embarcadero.com/RADStudio/Sydney/en/Delphi’s_Object_Pascal_Style_Guide +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;
  21. haentschman

    Is there a way for the formatter to do this?

    Hi... Why? This is not in accordance with the official style guide. https://docwiki.embarcadero.com/RADStudio/Sydney/en/Delphi’s_Object_Pascal_Style_Guide I know that you can create your own styles. But do you think about those who get your source code and can hardly read it?
  22. haentschman

    Help with Delphi Community Edition

    ...🙄 No answer? You have a perfect licence and you can use it on the laptop. Install the Professional or Enterprise (what you have) version with your key. 😎
  23. haentschman

    Help with Delphi Community Edition

    Why the Community Edition? 🤔 You can use your personally registration on multiple computers...only uses by your self. 👍
  24. haentschman

    FireDAC Connection to ADS failed

    Hi... I am trying to connect to our new ADS server for the first time. (Third party software, access data with read rights available). On another VM the Advantage Data Architect is running with the same access data. Share on the Database folder available. ...it does not want me. "...cannot authenticate the user..." What is missing? Thanks. PS: On my machine the Advanced Data Architect is also working... Crosspost: german DP https://www.delphipraxis.net/213554-zugriff-auf-ads-server.html#post1525731
×