Jump to content

haentschman

Members
  • Content Count

    214
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by haentschman

  1. haentschman

    How to open form2 then close form1

    Hi... finally Form2.Free; Form1.Release; // <- end; Whats that? https://docwiki.embarcadero.com/Libraries/Seattle/en/Vcl.Forms.TCustomForm.Release Note: Sorry, you want close Form1. I thought of a typing error.
  2. ...Delphi Community Edition https://www.embarcadero.com/products/delphi/starter/free-download More modern then Delphi 7...
  3. haentschman

    Variable might not have been initialized

    ...VCS? (VersionControlSystem) ...from ZIP? 🤢
  4. haentschman

    New to delphi

    Hi... ...please show us your search pathes of Delphi.
  5. 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;
  6. 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/
  7. 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.
  8. haentschman

    Print TDBGrid

    ...sorry, it is new for me.
  9. 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.
  10. Delphi: Only the subscription expires. The license remains valid.
  11. 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
  12. haentschman

    D12 Welcome Page

    ...die mit den Bonbons. 😋
  13. haentschman

    D12 Welcome Page

    Hi...😎 https://dwp.gksoft.ch/en/Delphi-Welcome-Page-Plugin.html ..it is my:
  14. 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
  15. haentschman

    BDE Installing

    Why BDE with D12?
  16. 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.
  17. 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
  18. haentschman

    Help to find database error

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

    What is the benefit of sorting the Uses clause?

    Hi...😎 Now is Checkbox = True. Than...is it ok.
  20. 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
  21. haentschman

    What is the benefit of sorting the Uses clause?

    Sorry...😉 PS: with "*" ("Form.*") also... PS: FireDAC and more are missing (first test) 😉
  22. 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;
  23. 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, ...
  24. 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;
×